Guide to vim

From razwiki
Revision as of 13:15, 5 July 2023 by Razzi (talk | contribs) (Created page with "Specifically this is about how to use vim as a window manager, since I'm tired of tmux First open a file and a vim terminal in 1 command: vim file +term then control+space...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Specifically this is about how to use vim as a window manager, since I'm tired of tmux

First open a file and a vim terminal in 1 command:

vim file +term

then control+space space changes the focus, using c-spc as the terminal win key rather than c-w so that can be delete backwards word like usual

set termwinkey=<C-@>
tnoremap <C-@><space> <C-w><C-w>