title: Vim Navigation Tips 01 tags: vim csvhead: Key,Effect ## Windows `C-w` does window stuff. ```csv C-w s,split horizontal C-w v,split vertical C-w L,move current window to vertical window on the right (think hjkl navigation keys with shift) C-w H,move current window to vertical window on the left C-w j,move current window to horizontal window below C-w k,move current window to horizontal window above C-w f,open file with name under cursor in new window C-w gf,open file with name under cursor in new **tab** C-w |,zoom current window C-w =,return from zoom C-w S-t,current window to new tab ``` Press `C-6` to go back. ## g stuff ```csv gv,go back to last gq,break long paragraphs gJ,join 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 * [vim.fandom on Open File Under Cursor](https://vim.fandom.com/wiki/Open_file_under_cursor) * [stackoverflow on zoom windows](https://stackoverflow.com/questions/13194428/is-better-way-to-zoom-windows-in-vim-than-zoomwin)