Guide to vim

From razwiki
Revision as of 14:10, 5 July 2023 by Razzi (talk | contribs)
(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>

lsp mostly works with vim-lsp, but the ui for errors is a mess so it's nice to install https://github.com/folke/tr ouble.nvi. Unfortunately that only works with neovim ... and neovim doesn't work with termwinkey ...m