On 03/12/12 07:07, Dotan Cohen wrote:
Due to the way that I hold the keyboard [1], I find it difficult to
get to H comfortably, though I use this key often in Command mode. Is
there a way to configure i to switch to Insert mode as it normally
does, but to have ii act as hi, and [n]i act as [n-1]hi? I l know that
I can configure each sequence manually, but if there exists a way to
define a function or such then I would love to know.

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)

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.

-tim


--
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

Reply via email to