History
Article Edit this page Discussion

Insert and back

From Vim Tips Wiki

(Redirected from VimTip314)
Jump to: navigation, search

[edit] Duplicate tip

This tip is very similar to the following:

These tips need to be merged – see the merge guidelines.

Tip 314 Previous Next Created: August 14, 2002 Complexity: intermediate Author: Alex A. Naanou Version: 5.7


This is for programmers too lazy to move their hands to reach the far away Esc key. Actually the less your hands move around the faster you type.

Here is a small snippet from my mappings file, ready to speed things up. The key overloading might be a somewhat confusing at first.

imap <S-Space> <Esc>l
imap <C-CR> <Esc>o
imap <S-CR> <Esc>O

nmap <S-Space> i
nmap <Space><Space> i
nnoremap <CR> o
nmap <S-CR> O

[edit] Comments

I would rather extend my pinky quickly to <Esc> than pressing two keys at the same time. What is wrong with <Esc> key?

By trying to press <SHIFT> "and" <SPACE> at the same time, your whole hand is already moved downward, which actually delays the process. I think that you are not a touch typist, in which case this is not bothering at all. However, for the touch typist, moving the whole hand is the most annoying thing.

By pressing <Esc> alone with your pinkie, you don't need to move your whole hand, and get back to the your typing very quickly without looking at the keyboard.


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Doctor Who
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Mystery Science Theater 3000
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Insert and back"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation