Everyday Vim

Sep 02

xp swaps letters

more detailed, x removes current char, p paste it after cursor

Sep 01

s and S enters insert mode

s delete char under cursor and enters insert mode; S delete whole line and enters insert mode

Aug 30

Crtl-A in insert mode

Insert last inserted text

Aug 27

Warning when key binding is redefine

TODO

Aug 26

Indent file

Use gg=G to indent all file

Move forward or backward in jump list

Simply use Ctrl-i or Ctrl-o to do this. Also check help: :help jumplist for more.

Basic help navigation

Use Ctrl-T and Ctrl-] to move backward and forward in help. Ctrl-] also opens new link in help.

Last edit place

To jump to last edit place useĀ ’. or gi - the last one works only when nocompatibile is on and enters edit modeĀ 

Esc substitute in Vim

Only reason I do not like to use vim was Esc key. It distracts me to hit it all the time. But now, I found that C-[ is addnational Esc and C-c cancel insert mode. So I’m back to vim!

I also use Caps Lock as Control - much more confortable.