fredag 25. november 2011

terminal not recognizing the Enter/Esc key? Imitate them in vim

Bind a key mapping for the program you are using, for instance in VIM:
(in the .vimrc file if you want it to stay this way):
:imap qq <Esc> and :imap @@ <Enter> where good mappings for me. You have to type two q's very quick to imitate the Esc-key while in insert mode, and the same for the @-key. Both are close to the key they represent. you can, ofcourse change the keys if you want - just replace them with something else, like :imap cornflower <Esc>, and everytime you type cornflower...

Ingen kommentarer:

Legg inn en kommentar