Place this in your vim config file:
imap jf <Esc>
Now you can press 'jf' instead of Escape to exit Insert mode. Feel free to remove 'jf' and insert anything you want in its place.Related Tips
cmap jf <Esc>
Exactly like the above, only this works in Command-line mode." Don't put this in your Vim config
vmap jf <Esc>
This manages to break part of Visual mode. Specifically, pressing '$' while in Visual mode will select everything from the current position to the end of the NEXT LINE (instead of the current line). Replacing 'jf' with 'jj' seems to prevent this glitch, but it could cause another one. Visual mode seems like a delicate little flower, and it's best not to step on it.
No comments:
Post a Comment