On Mon, Mar 12, 2012 at 14:18, Tim Chase <[email protected]> wrote: > While an odd request, is there something I'm missing about just doing > > :nnoremap ii hi > > It works with prefixed counts, allows you to keep insert-mode (though you > either have to type a character in insert mode that *isn't* "i" or wait for > 'timeoutlen' to see the results of it) >
I have no problem waiting for the limeoutlen to time out, I already use that for other movements. The problem with the mapping that you mention is that one must press ii for an equivalent h, so moving four spaces to the left requires iiiiiiiii. I could get used to pressing 4ii to move four spaces back though. > An outside-the-box solution might be to investigate other horizontal > movements that don't involve H. I almost never use h/l for left/right > movement, preferring instead to use f/F/t/T, or w/W/b/B/e/E, or %/(/) type > movements. It's rare that I need to move only one or two characters > left/right, especially if that doesn't land me on a targetable boundary. I actually do move just a few characters to the left fairly often, as mentioned here: http://dotancohen.com/howto/write_code.html That coding style is quite the reason that I actually love VIM! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com -- 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
