vim-cheet-sheet/new-info.txt
2025-05-01 11:28:28 +05:00

36 lines
1.3 KiB
Plaintext

Commands:
ZZ -- write out and exit
75 i ! <Esc> -- insert "!" 75 times
75 a ! <Esc> -- append "!" 75 times
Ctrl-] -- move to |hyperlink|
Ctrl-O -- come back from hyperlink
Window management:
Always starts from Ctrl-W
Ctrl-W h -- to the left window
Ctrl-W j -- to the bottom window
Ctrl-W l -- to the top window
Ctrl-W l -- to the right window
Ctrl-H H -- move window to left
Ctrl-H J -- move window to bottom
Ctrl-H K -- move window to top
Ctrl-H L -- move window to right
Word movement:
fh | 3fl -- move cursor to the "h" letter of the current line
f<Esc> -- aborts search
Fh | 3Fl -- like above, but searches to the left
tl | 3tl -- like fh, but cursor stops before the letter
Tl | 3Tl -- like above, but searches to the left
ge -- moves to the previous end of the word
$ | 5$ -- to the end of the line
^ -- to begin of the first word in line
0 -- to begin of the line
Console:
:help index -- complete index of all Vim commands
:help Ctrl-W -- find help with window management command
:help usr_toc.txt -- all user manuals breef look