Show Menu
Cheatography

Vim Turbo Fortnight Keyboard Shortcuts by

Keyboard shortcuts for vim and fortnight

Motions and Commands

daw
Delete All Word
ciw
Change In Word
yi)
Yank In Parant­heses
b
Move to beginning of previous word
B
Move to beginning of previous word by spaces
w
Move to beginning of next word
W
Move to beginning of next word by white space
e
Move to end of next word
E
Move to end of next word by space
fc
Find next occurance of char c
Fc
Find previous occurance of char c
tc
Move before char c
Tc
Move before previous char c
 

Git Keys

[c or ]c
Move to next or previous diff hunk in diff mode
[q or ]q
Move to next item in gitlog also works with Quick fix window
do or dp
Diff get or Diff put (current window context)
d2o or d3o
Diff get or Diff put when resolving conflict
p
In status window on changed file start git add -p
2 is HEAD
3 is Merge Copy
 

Scroll­/Move

Ctrl-e
Scroll down one line
Ctrl-y
Scroll up one line
Ctrl-d
Scroll down half page with cursor
Ctrl-u
Scroll up half page with cursor
Ctrl-f
Scroll down full page with cursor
Ctrl-b
Scroll up full page with cursor
H
Move to first line on screen
M
Move to middle line on screen
L
Move to last line on screen
( or )
Move sentence back or forward
{ or }
Move paragraph back or forward
gg
Move to first line of the file
G
Move to last line of the file
:n or nG
Move to nth line of the file
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VI Editor Cheat Sheet
          Vim NERDTree Cheat Sheet
          Helix Keyboard Shortcuts