- gist - keyboard shortcuts
- vim motion diagrams
- in Neovim, type
:Tutorfor some common VIM motions
IntelliJ Idea VIM Plugin - https://plugins.jetbrains.com/plugin/164-ideavim (documentation)
-
mark* locationsma-- set the markaat the current position`a-- jump to marka:marks-- show bookmarks
-
search
f+<char>- jump to a character on the line;- after usingf, this will jump to next match,,go back
t+<char>- jump to character beforeF+<char>- jump backwards to character
-
yankandpasteyy-- yank current lineyf<char>-- yank to character (including character)yt<char>-- yank to character (excluding character)p-- paste after cursorP-- paste before cursor
-
scroll*zt-- scroll current line to top of screenz.-- scroll current line to middle of screenzb-- scroll current line to bottom of screen
-
gotoG- jump to bottom of filegg- jump to top of file
- http://vim.wikia.com/wiki/Example_vimrc
- http://spf13.com/post/perfect-vimrc-vim-config-file
- view vimrc file
-
for a case insensitive search use the
\cescape sequence/\ccopyright -
delete empty lines from selected text
- after selecting text in visual mode, type
:g/^$/d
- after selecting text in visual mode, type