Cheatsheet - sirfz/dotvim GitHub Wiki
Cursor Movement
h
: Move leftj
: Move downk
: move upl
: move right
Use can also use arrow keys.
-
b
: move one word back -
w
: move one word forward -
0
: move to the start of the line -
^
: move to the first non-blank character of the line -
}
: jump to next paragraph/block -
{
: jump to previous paragraph/block -
%
: move to matching character (default supported pairs: '()', '{}', '[]' - use :h matchpairs in vim for more info) -
gg
: move to top of file -
G
: move to bottom of file -
M
: move to middle of file
Search
#
: find word under cursor/
: Enter search string?
: Same as/
but search backwardsn
: move to next search matchN
: move to previous search matchfx
: move cursor to next occurrence ofx
(can use any character)tx
: move cursor right before next occurrence ofx
coh
: toggle search highlighting on/off
Navigation
]b
: next buffer[b
: previous buffer];
: next linting error[;
: previous linting errorg;
: jumpt to last modification in the current buffer]c
: next diff[c
: previous diffCTRL
+h
: switch to left pane (can usej
,k
,l
)
LeaderF
\
+ff
: Open LeaderF file searchCTRL
+j
: move file selection down (k
for up)
\
+fm
: Open move recently used files list\
+fb
: Open list of open buffers
Quick formatting
>>
: Indent once2>>
: Indent twice (can use any number)
<<
: Unindent==
: re-indent current line=%
: re-indent block within(
,{
,[
zo
: open foldzc
: close fold