Friday, September 3, 2010

RE: Vim for code navigation

vtadipatri wrote:
> To jump to a tag I think I should use ctrl+], but if I've
> changed the file it keeps prompting me that I need to use !
> to override.

You do not want '!' because if you managed to use it, your
changes to the file would be lost. You need to do some reading
about buffers and the 'hidden' option. Try:
http://vim.wikia.com/wiki/Easier_buffer_switching

> Also, I don't want it to blindly jump to the code - if there
> are multiple matches i want to choose where to go.

Instead of Ctrl-] type:
g Ctrl-]

John

--
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