-
Notifications
You must be signed in to change notification settings - Fork 0
/
memo.txt
105 lines (79 loc) · 2.61 KB
/
memo.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
Notification history on Arch:
dunstctl history
Bash: https://github.com/jlevy/the-art-of-command-line
ctrl-x ctrl-e: edit current line in EDITOR
alt+# :comment current line and press enter
:tag <C-R><C-w> To jump to tag in help (Or <C-\>] with current vimrc)
:dis -> print all the paste registers
i3 Save / load windows layout: Mod + , vs Mod + .
Paste in terminal mode: <C-w>"{reg}
<C-W>N (Capital N) -> Switch to Normal mode in terminal
z<CR> - scroll so current line is at the top of your screen
z. - scroll so current line is in the middle of your screen
z- - scroll so current line is at the bottom of your screen
Keep cursor in same position:
zt for top
zb for bottom
zz (LOWERCASE) for middle
<C-e> Scroll down one line
<C-y> Scroll up one line
Folding: https://vim.fandom.com/wiki/Folding
zc / zo / za : close/open/toggle fold
zC/zO/zA: all folds
zr/zR/zm/zM : close / open one more level throughout the file
zf`a : fold from current line to marker 'a'
zf3j: fold next 3 lines
zfa} fold current block
:<C-f> or /<C-f> or q: --> Edit last commands and press enter to execute
easymotion:
<tab>f/F find char
<tab>t/T find before char
<tab>w/W find word forward
<tab>b/B find word backward
[{ [( Previous { / (
]} ]) Next } / )
]m ]M Function { / }
% Matching parenthesis / brace
\b : Bookmark with name under cursor
Explore: https://shapeshed.com/vim-netrw/
i : change layout ( let g:netrw_liststyle = 3 to make it permanent)
:Explore / Vexplore / Sexplore
banner show/hide: I
:e %%/ -> Edit file in same folder
Navigate through quickfix history:
:colder / :cnewer
<F8> : Next Git hunk
<C-F> : Print current filename:line in insert mode
<C-F>: Copy current filename:line to unnamed register
**<tab> : FZF in bash (Ctrl-T)
Choose Window:
= : select window
= s: swap windows
= S: swap but keep focus
= -: go to previous
(Changed from = to space)
:ls List buffers
:ls a List active buffers (Displayed)
:b <n> Switch current window to buffer <n>
Switch to last window:
<C-W><C-P>
Marks:
\+1-6 : Switch to next mark of the given group
\* Next of same group
\# Previous of same group
\/ Next of any group
\? Previous of any group
CamelCaseMotion: \w \e \b (Next beginning / end of work, backward)
Save: :mksession /path/to/saved/session
Restore: :source /path/to/saved/session
Thunderbird:
Shift+G : Go to Folder
Next Unread N
Previous Unread P
Next / Previous message F/B
TODO:
https://github.com/puremourning/vimspector
https://jonasdevlieghere.com/vim-lsp-clangd/
Auto indent settings: https://github.com/tpope/vim-sleuth
Advanced: https://github.com/junegunn/fzf.vim.git
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONFAULTHANDLER