On Mon, October 7, 2013 12:31, Wiktor Ruben wrote: > Hello, > > I use Vim 7.4.052. > Help says that <C-\><C-O> is "like CTRL-O but don't move the cursor", > but: > > vim -u NONE > :set nocp > :set ruler > :set ft=cpp > :set formatoptions+=r > > Put the text below: > > }<Left>//foo<CR> > > You should have: > > //foo > //|} > > where '|' indicates cursor position. > > Look at the ruler, the cursor position is (2,3). Now press <C-\><C-O>. > Cursor moves to (2,4).
Apparently, inserting the comment leader after pressing Enter confuses Vim if you then use <C-\><C-O>. Here is a patch. regards, Christian -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
ctrl_bsl_nomove.diff
Description: Binary data