El Jueves, 8 de noviembre de 2012, Ed Kostas escribió:
> :imap <C-h> <Left>
> :imap <C-j> <Down>
> :imap <C-k> <Up>
> :imap <C-l> <Right>
I'm not going to answer what you asked, but since in other mail you said that
you are beginning, I'm going to try to explain you something way more
important:
You are trying to avoid normal by adding in insert mode several mappings.
DON'T DO THAT!
Is called normal mode for a reason. You normally want to be in that mode. As
Drew Neil explains in his Practical Vim book (that I totally recommend), a
painter doesn't necessarily spend most of the time with the brush leaning on
the canvas.
You are losing the main reason that makes Vim useful if you don't use modes.
Even worse: many important Vim features like the dot command are completely
based on the change of modes.
Also, if you really, really want to map something, make sure that you make a
good decision on what you use. The reason is that you may be hiding, and this
making more difficult to use the functionality that Vim provides. For example:
If you map <C-x> in insert mode, you will need to find another key to use the
completion that is provided when you press <C-x> followed by another key.
If you map <C-h> you may have problems with the backspace key (in some cases
Vim will see the backspace and <C-h> as the same key).
And so on...
--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
--
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
Thursday, November 8, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment