-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotes.txt
110 lines (95 loc) · 2.45 KB
/
notes.txt
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
VIM:
<c-s> - freeze
<c-q> - resume
<c-w> [dir] - change windows
NERDTREE:
enter - expand
x - collapse
s - open in vertical
o - open and replace
i - open horizontal
CNTRLP:
<c-w> - reset search
<c-t> - open file in tab
<c-x> - open file in horizontal
<c-v> - open file in vertical
SYNTASTIC:
:SyntasticCheck - check syntax
:Errors - show errors list
:lclose - hide errors list
:SyntasticReset - hide all errors
CAW:
Type "gci" (toggle: "gcc", uncomment: "gcui")
before:
" <- inserted here"
after:
" # <- inserted here"
Type "gcI" (uncomment: "gcuI")
before:
" inserted the first column"
after:
"# inserted the first column"
Type "gca" (uncomment: "gcua")
before:
"inserted after this"
after:
"inserted after this # "
Type "gcw" (uncomment: "gcuw")
before:
" wrap!"
after:
" /* wrap! */"
Type "gcb"
before:
" box!"
after:
" /********/"
" /* box! */"
" /********/"
Type "gco"
before:
" func1();"
after:
" func1()"
" // " (now cursor is at the end and entered insert-mode)
Type "gcO"
before:
" func1();"
after:
" // " (now cursor is at the end and entered insert-mode)
" func1();"
BRACKETS:
cs[current][new] - change
ds[current] - delete
yss[new] - add
S[new] - add when in visual
FOLDING:
Vim folding commands
---------------------------------
zf#j creates a fold from the cursor down # lines.
zf/ string creates a fold from the cursor to string .
zj moves the cursor to the next fold.
zk moves the cursor to the previous fold.
za toggle a fold at the cursor.
zo opens a fold at the cursor.
zO opens all folds at the cursor.
zc closes a fold under cursor.
zm increases the foldlevel by one.
zM closes all open folds.
zr decreases the foldlevel by one.
zR decreases the foldlevel to zero -- all folds will be open.
zd deletes the fold at the cursor.
zE deletes all folds.
[z move to start of open fold.
]z move to end of open fold.
CTAGS:
<C-]> opens def in new tab
example generation:
ctags --exclude=node_modules --languages=javascript -R .
YCMD:
,i gives docstring
,ni closes docstring
,def gives definition in new tab
GENERAL:
wifi icon dissappeared: nohup nm-applet &
disable interface: sudo ip link set wlp3s0 up