On Wed, 30 Dec 2009 14:49:02 -0800, Peng  Yu wrote:

> o or O will move the cursor. Is there a command that don't move the
> cursor?

If you don't want to use a function, it's not quite the same position, but 
is the same line, plus an alternative for the line below. I use one of 
these all the time:
" Add a blank line, position cursor above blank.
map <A-Enter> o<Up><Esc>  
" Add a blank line, position cursor below blank.
map <A-Enter> o<Esc>





-- 
NickC

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to