dotfiles/slackware/home/vim/.vim/bindings.md
2022-07-08 22:10:57 -04:00

2.4 KiB

ODO: asciidoc hq6/VimFreeDrag

General Vim c-p, c-n dumb completion in open buffers c-i, c-o back/forward a jump g; back to last edit location c-^ go to previous file edited (alternate file) registers :reg see register contents 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

EasyAlign C-x in visual mode to do reg expression Vlime

\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

GitGutter [c and ]c jump between hunks hp preview hunk hs stage hunk hu undo hunk TODO: map to ghp, ghs, ghu, ghn, ghp? find mapping for gitgutterfold TODO: nmap ghv (GitGutterPreviewHunk) nmap ghn (GitGutterNextHunk) nmap ghp (GitGutterPrevHunk) nmap ghf (GitGutterFold)

TODO: make this folded notes, bind edit function

Custom Bindings c-c kill current window

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

TODO YCM gd goto definition

Help Navigation follow link: ctrl-] previous link: ctrl-t or ctrl-o

LEIN project lein-boilerplate installs deps, runs lein, forwards lein port lein-play-cljs same for game development lein-postgres same for postgres