On 3/19/07, fREW <[EMAIL PROTECTED]> wrote:
Hi all,
I was recently discussing some features of vim that I use a lot with a
friend and asking if he knew of ways to do certain things better, and
one issue that both of us have is that we create newlines with o or O
and then go back to normal mode immediately afterwards.
So I often end up doing:
o<esc>
or
O<esc>
where it would be nice to have a single key that would do this. Is
there already such a feature, or should I just do something like
nnoremap zj o<Esc>
nnoremap zk O<Esc>
I realize that zk and zj are still two keystrokes, but they are easier
to type as it is.
I have this mapping
noremap <Enter> i<cr><esc>
in my vimrc, so I *do* do it with one keystroke
(the Enter in normal mode).
Yakov "one man's bug is another man's feature" Lerner