Resources

Master on Free Software

Files

Emacs vs Vim commands

Command Emacs Vim
Open a file C-x-f :e
Save a file C-x-s :w
Exit C-x-c :q
Go to a line M-g-g :
Go to the beginning of the file M-< gg
Go to the end of the file M-> G
Center window C-l zz
Text selection C-spacebar V
Select all C-x h ggVG
Cut C-w x
Copy M-w y
Paste C-y p
Search forward C-s /
Search next C-s n
Search previous C-r N
Search backward C-r ?
Search next (current word) C-s C-w C-s *
Search previous (current word) C-r C-w C-r #
Replace M-% :s/foo/bar/
Split window (horizontal) C-x 2 :sp
Split window (vertical) C-x 3 :vs
Maximize window C-x 1 :o n
Change window C-x o ^ww
Undo C-_ u
Redo C-_ C-f C-_ :red
Delete word M-d dw
Delete line C-k dd

Where:

  • C: Control
  • M: Alt
  • ^: Control

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^

Bad Behavior has blocked 173 access attempts in the last 7 days.