Sunday, January 13, 2013

How to get to EOF, not last line ???

Hey, I 'm trying to implement a "control all" mapping with the following command at my .vimrc

:map <c-a> <esc>ggvG

(The escape is to get out of insert mode if needed).

However, that way the last line of the file is not selected, which apparently is how G works. So, is there a key to use instead of G to reach the end of the file (EOF)?

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