On May 19, 4:35 am, Raúl Núñez de Arenas Coronado <raul...@gmail.com>
wrote:
>
> I was wondering if
> a version of "o/O" exists that instead of adding a new line below/above
> the current one and going into insert mode just breaks the current line
> and goes into insert mode.
>

I don't think there is. i<CR> isn't all that many keystrokes,
though :-).

>
> Moreover, in my map I want to do something like this (which doesn't
> work):
>
> nnoremap <buffer><Leader>o :while getline(".")[col(".") - 1] ==
> '>'\|normal l\|endwhile<CR>
>

For one thing, see :help :bar. :normal is a command that takes a | as
an argument, so you need to use :execute "normal l" in order to change
it.

There may be other problems too but that's the most obvious.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to