On Tue, 20 Mar 2007, Tim Chase wrote: > >>>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.
> >>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). > >That's an idea! > >I use <CR> a lot in normal mode to move down a line, but I could > >map the other key which does the same thing, '+'. It is also > >easy to remember, as meaning, add a line. > I think you may be the first person I've met who uses the <enter> > key for that purpose on a regular basis :) [ed: as I typed this, > a second email came in from another person who uses <enter> ] > But yes, <enter>, "+" and "-" are keys that mostly duplicate the > behavior of "j"/"k" keys, so I find them good candidates for > remapping. I use j and k a lot, of course. I like to use - and <CR> because they go to the first non-blank character on the line. There's also underscore, which I have never used. _ <underscore> [count] - 1 lines downward, on the first non-blank character |linewise|. Perhaps I should try mapping that one. > I have "+" and "-" remapped to "O" and "o" > respectively followed by <esc> for adding lines above/below the > current line. That's intuitive too. -- Greg Matheson Management is doing things right; Leadership is doing the right things. --Peter Drucker -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.