Inclusive search in vim
I noticed that when I search for a pattern with / in vim, the cursor is dispatched to the next occurrence of the pattern, even if the cursor was in place before searching. How to search for a pattern and keep the cursor stationary if it is already present?
It is possible to avoid the problem by installing wrapscan and using N, but is there an easier way?
+3
source to share