Guide to vim

From razwiki
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