Home

Intermediate Vim

More Useful Commands

Note: {n} refers to a numeral.

CommandAction
{n}oInsert content n times on next n lines
q:Open history window for : commands
q/Open history for searches
ctrl,vVisual mode from first line
ctrl,v {n}gg shift,i # escAdd # to start of each line from here to n
ctrl,o,oOpen last edited file
ddpSwap current line with next one
:/user-friendly/m\$Move the next line containing the string "user-friendly" to the end of the file
g;Bring back cursor to previous position
ctrl-oRetrace movements in file backwards
ctrl-iRetrace movements in file forwards
'.Jump back to last modification line
backtick,.Jump to exact spot in last modification line

Mapping

Reference for Neovim can be found here

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/vim/intermediate-vim

Sections


Related