By default, the cursor is placed in the middle of the window after jump to a tag definition,
but more often than not, a function's code is longer than half the window's height, so I have to
press 'z<CR>' after every '<C-]>' to see more code.
Is there a way to set cursor position after jump to a tag?
I use ':tjump' so there will be a window when there are more than one match, so a simply
':nnoremap <C-]> <C-]>z<CR>' don't work.
thanks.
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment