Have vim exit insert mode automatically after some time
Posted: Fri Jan 04, 2008 6:39 pm
Switching between insert and command mode in vim is (at least for me) the most ineffective finger-movement, because the ESCape key is too far away from my home row. 
Obviously, there are more people out there that feel the same way, so here's a solution:
1) Edit .vimrc (either ~/.vimrc or /etc/vimrc).
2) Add the following lines:
This causes vim to leave the insert mode after 500msec of inactivity. I love it!

Obviously, there are more people out there that feel the same way, so here's a solution:
1) Edit .vimrc (either ~/.vimrc or /etc/vimrc).
2) Add the following lines:
Code: Select all
au! CursorHoldI * stopinsert
set updatetime=500