Vim & Emacs   Net lab
  Survival Guide


  Vim Emacs
Basics PRESS ESCAPE
BEFORE COMMAND INPUT
C = CONTROL M = ALT
C-x = CONTROL AND x
Quit :qa! C-x C-c
Save file :w C-x C-s
Open file :find (filename) C-x C-f
New file :enew C-x C-f (new name)
Close file :q C-x k
Edit mode i (default)
Mark text v (then move cursor) C-SPACE (then move cursor)
Cut x C-w
Copy y C-w (then) C-x u
Paste p C-y
Delete x C-d
Undo u C-x u
Cancel command ESC C-g
Cursor left h C-b
Cursor right l C-f
Cursor up k C-p
Cursor down j C-n
Cursor screen forward C-f C-v
Cursor screen back C-b M-v
Search / C-s
Search continue n C-s
Replace :%s/this/that/g M-%
Match case sensitive :set noignorecase M-x set-case 11
Match case insensitive :set ignorecase M-x set-case 00
Windows open new :new C-x 2
Windows go to next C-w w C-x o
Windows close this :q C-x 0
Windows close others :only C-x 1
Windows list :buffers C-x C-b
Help :help index C-h
Comments many more commands
available
many more commands and
extensions available


Back to Net lab --- Linux