Dup Ver Goto 📝

Vim Navigation Tips 01

PT2/editor/vim/tips vim does not exist
To
32 lines, 170 words, 1113 chars Page 'Navigation_01' does not exist.

Windows

C-w does window stuff.

KeyEffect
C-w ssplit horizontal
C-w vsplit vertical
C-w Lmove current window to vertical window on the right (think hjkl navigation keys with shift)
C-w Hmove current window to vertical window on the left
C-w jmove current window to horizontal window below
C-w kmove current window to horizontal window above
C-w fopen file with name under cursor in new window
C-w gfopen file with name under cursor in new tab
C-w |zoom current window
C-w =return from zoom
C-w S-tcurrent window to new tab

Press C-6 to go back.

g stuff

KeyEffect
gvgo back to last
gqbreak long paragraphs
gJjoin without spaces

joining lines

You can select lines with visual mode, then press J or gJ and it will join all those lines. Then if you are at the start of a paragraph, you can use V}J to select to the end of the paragraph and join.

See