>> ? n n n n searches repeatedly backwards. Then hit N to
>> search forward, and n to search backward again.
>
> I *know* that. Just my fingers...
>
> (When I navigate code and jump around a lot, I tend to forget,
> in which direction I originally searched. I usually only know
> that I want to move downwards, so I hit 'n' and I hate when
> Vim moves upwards...)
And the only thing worse than expecting "n" to move downwards
only to have it move upwards is having a file that's so similar
(such as a long tab/CSV file) where you can't readily tell
whether you've gone up or down :)
I confess, while Vim has a profusion of options, that's one I
wouldn't mind seeing...something that toggled between "n means
next in the same search-direction as last time" and "n means
search downward in the file". I suppose I could do something like
:nnoremap n /<cr>
:nnoremap N ?<cr>
if it really bugged me that much.
-tim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment