0# My Neovim config
1## Shortcuts
3```text
4 ~Misc
5File explorer <space>pv
6Fuzzy finder <space>pf
7Grep search <space>ps
9Brackets around word N: yswb
10Brackets around mark V: S)
11 *curly brackets V: S}
12Delete delimiters N: ds<delimiter>
14Move line up V: K
15 down V: J
17half-page down N: <C-d>
18half-page up N: <C-u>
19page up N: <C-b>
20page down N: <C-f>
22Copy to OS clipboard V: <space>c
24Show vertical diff :vert diffs <filename>
26Convert \ to / V: <space>win
27```
29```text
30 ~Tabs
31New tab N: <space>t or :tab split
32New tab on file N: <space>f or Ctrl+W+gf
33```
35```text
36 ~Comments
37Comment line out N: gcc
38Combine motions N: gc<motion>
39Comment marked V: gc
40Uncomment N: gcgc
41```
43```text
44 ~Panes
45New pane :new
46 :vnew
48Split pane :sp
49 :vsp
51Change pane <C-w>hjkl (or arrow keys)
52Close pane :q
54Move panes: <C-w>HJKL
56Change pane size <space>, (horizontal)
57 <space>.
58 <space>+ (vertical)
59 <space>#
61Reset pane size <space>-
62```
64```text
65 ~Module :Ex
66Toggle hidden files gh
67Create file %
68Create directory d
69Delete file/directory D
70Rename file/directory R
72Assign target dir mt
73Mark file/dir for cp/mv mf
74Copy marked to target mc
75Move marked to target mm
76Run ext. cmd on marked mx
77```
79```text
80 ~Module fugitive
81Open Git cmd <space>gs
83stage (add) file s
84unstage u
85toggle stage/unstage -
86unstage everything U
88create commit cc
89amend commit (w/ msg) ca
90amend commit (w/o msg) ce
92toggle inline diff =
93insert inline diff >
95Git diff split dd
96close diff buffer dq
98open in new hsplit gO
99open in new tab O
100```
102```text
103 ~Module telescope
104Find files <space>pf
105Find files (git) <C-p>
106Grep <space>ps
107```
109```text
110 ~CTAGS
111Go to definition gd
112Open definition K
113 in new pane
114Jump back <C-o> or <C-t>
115```
index : nvim-config
---