2020-06-25 15:42:19 -04:00
|
|
|
ODO: asciidoc
|
|
|
|
|
hq6/VimFreeDrag
|
2020-02-18 14:21:14 -05:00
|
|
|
|
2020-03-10 07:07:51 -04:00
|
|
|
General Vim
|
|
|
|
|
c-p, c-n
|
|
|
|
|
dumb completion in open buffers
|
|
|
|
|
c-i, c-o
|
|
|
|
|
back/forward a jump
|
2020-06-25 15:42:19 -04:00
|
|
|
g;
|
|
|
|
|
back to last edit location
|
|
|
|
|
c-^
|
|
|
|
|
go to previous file edited (alternate file)
|
|
|
|
|
registers
|
|
|
|
|
:reg
|
|
|
|
|
see register contents
|
|
|
|
|
<C-r> reg
|
|
|
|
|
paste from register in normal mode
|
|
|
|
|
names
|
|
|
|
|
1-9
|
|
|
|
|
delete registers
|
|
|
|
|
0
|
|
|
|
|
yank register
|
|
|
|
|
a-z
|
|
|
|
|
named registers
|
|
|
|
|
A-Z
|
|
|
|
|
same as a-z but append
|
|
|
|
|
/
|
|
|
|
|
current search pattern
|
|
|
|
|
=
|
|
|
|
|
returns a math result
|
|
|
|
|
_
|
|
|
|
|
black-hole register
|
|
|
|
|
:
|
|
|
|
|
last ex command
|
|
|
|
|
quickfix
|
|
|
|
|
run :make in vim
|
|
|
|
|
:copen to go to line
|
|
|
|
|
navigation:
|
|
|
|
|
:cn, :cw, :cp, [c, ]c
|
|
|
|
|
regex copying
|
|
|
|
|
show only matching lines:
|
|
|
|
|
:g/pattern
|
|
|
|
|
copy only matching lines:
|
|
|
|
|
:g/pattern/ y A
|
|
|
|
|
v
|
|
|
|
|
inverse
|
|
|
|
|
delete all lines not matching a pattern:
|
|
|
|
|
:v/pattern/d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
https://www.youtube.com/watch?v=v0W7JkzQAzA
|
|
|
|
|
|
|
|
|
|
|
2020-03-10 07:07:51 -04:00
|
|
|
|
2020-02-07 08:49:43 -05:00
|
|
|
EasyAlign
|
|
|
|
|
C-x in visual mode to do reg expression
|
2020-02-14 16:58:38 -05:00
|
|
|
Vlime
|
2020-01-20 15:48:48 -05:00
|
|
|
|
2020-02-14 16:58:38 -05:00
|
|
|
\rr
|
|
|
|
|
start and connect to session within vim
|
|
|
|
|
\cc
|
|
|
|
|
start connection
|
|
|
|
|
\cs
|
|
|
|
|
list connections
|
|
|
|
|
\cd
|
|
|
|
|
drop connection
|
|
|
|
|
\i interaction mode
|
|
|
|
|
enter to evalutate
|
|
|
|
|
\dda
|
|
|
|
|
show doc for function
|
|
|
|
|
\p
|
|
|
|
|
show package name
|
|
|
|
|
\xc
|
|
|
|
|
show xref
|
|
|
|
|
\of
|
|
|
|
|
compile file
|
2020-01-20 15:48:48 -05:00
|
|
|
|
2020-02-14 16:58:38 -05:00
|
|
|
GitGutter
|
|
|
|
|
[c and ]c
|
2020-02-07 08:49:43 -05:00
|
|
|
jump between hunks
|
2020-02-14 16:58:38 -05:00
|
|
|
<leader>hp
|
|
|
|
|
preview hunk
|
|
|
|
|
<leader>hs
|
|
|
|
|
stage hunk
|
|
|
|
|
<leader>hu
|
|
|
|
|
undo hunk
|
2020-02-07 08:49:43 -05:00
|
|
|
TODO: map to ghp, ghs, ghu, ghn, ghp?
|
|
|
|
|
find mapping for gitgutterfold
|
|
|
|
|
TODO:
|
|
|
|
|
nmap ghv <Plug>(GitGutterPreviewHunk)
|
|
|
|
|
nmap ghn <Plug>(GitGutterNextHunk)
|
|
|
|
|
nmap ghp <Plug>(GitGutterPrevHunk)
|
|
|
|
|
nmap ghf <Plug>(GitGutterFold)
|
|
|
|
|
|
2020-01-20 15:48:48 -05:00
|
|
|
|
2020-02-14 16:58:38 -05:00
|
|
|
TODO: make this folded notes, bind edit function
|
2020-02-07 08:49:43 -05:00
|
|
|
|
|
|
|
|
Custom Bindings
|
|
|
|
|
c-c
|
|
|
|
|
kill current window
|
|
|
|
|
|
2020-02-18 14:21:14 -05:00
|
|
|
Tmux
|
|
|
|
|
c-b d exit session
|
|
|
|
|
TODO kill session
|
|
|
|
|
:rename-window -n name
|
|
|
|
|
c-b {v, h} window split
|
|
|
|
|
c-b w new window
|
|
|
|
|
tslime: ,t
|
2020-03-10 07:07:51 -04:00
|
|
|
|
|
|
|
|
TODO YCM
|
|
|
|
|
<leader>gd goto definition
|