Tuesday, April 27, 2010

automatically move cursor to after comment leader

Say I'm in normal mode, with my cursor on column 0 of a line of code.
I move the cursor down to the next line, which is a comment line. I
would like my cursor to position itself not on column 0, but AFTER the
comment leader, so I can begin editing the comment text.

Similarly, if my cursor is in the middle of a comment line and I hit ^
I would like the cursor to move to the first non-leader character of
the line, not the first non-blank character.

It seems there should be a fairly simple way to do this -- any
suggestions?

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

Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en

No comments:

Post a Comment