-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheatsheet
60 lines (45 loc) · 1.24 KB
/
cheatsheet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
general
c-q: close
c-s: save
up,down,left,right: resize buffer/split
-,=: search word under cursor backward,forward
//: disable search highlights
R: replace all matches by
(cmd)c-p: paste
enter: copy line with linebreak to clipboard
s-enter: copy line without linebreak to clipboard
c-c,x: copy,cut to clipboard
c-v: paste from clipboard
vv: blockwise visual mode
(visual).: apply last operation on each line
navigation
a-h,n,e,i: move cursor by 1
#,$: move cursor to start,end of line
s,S: my sneak
space: page down
s-space: page up
c-i,o: jump backward,forward in jump history
c-h,n,e,k: jump to buffer to the left,bottom,top,right
tabs
c-t: clone buffer in new tab
a-1,2,3,4,5,6,7,8: jump to tab 1,2,3,4,5,6,7,8
a-9: move tab to the left
a-0: move tab to the right
folds
zf: fold/unfold inner most
zF: fold/unfold outer most
zc: increase fold level
zo: decrease fold level
zC: close all folds
zO: open all folds
plugins
startify: ;ss: open startify
;sq: save session as "temp" and close vim
nerd commenter: ;cc: comment
;cu: uncomment
surround: cs<key><key>: change surround
ds<key>: delete surround
(visual)is<key>: insert surround
vim base
gd: goto definition
zd: delete fold