its time to go down the vim rabbit hole. i did vimtutor and i like ce a lot. also searching. it will take me a while to learn the cut and paste shortcuts.
https://thoughtbot.com/upcase/videos/onramp-to-vim-motions-and-moving
some things i like here:
H/M/Lfor quick position jumps on a screenw/bto move fwd/back a wordffor quick find.;to repeat search commands,.to repeat change commands/foobarto search andn/Nto go back/forthctrl+U/Dto page up/down- command language:
ciwto “change a word” from inside the word (prefer this overcawfor more reusability)ci(orci)to change inside a parenthesis (ordibfor block deletes)citto change inside a tag (incl jsx!)ct>to change the params in a tagci"to change inside quotesdatto delete tag and contents- the difference between
aandiis “around” vs “inside”
text objects > motions
- from any location
navigating camelcasing is awkward so may want to use https://github.com/bkad/CamelCaseMotion or vim-wordmotion.
windows
- create new window:
:newor:vnewor:splitor:vsplit ctrl+W h/j/k/lto navigate these windowsctrl+W H/J/K/Lto move these windowsctrl+W -/+/</>/=to resize these windowszzcenter the line,zt/zbto move to top/bottom:tab newandgtto navigate between tabs. keep 2 at mostctrl+W Tto break a window out into a tab
modes
ctrl+E I (some actions) Esc
file explorer
- nerdtree no,
:e .yes!