Guide to vim: Difference between revisions
Jump to navigation
Jump to search
(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...") |
No edit summary |
||
Line 9: | Line 9: | ||
set termwinkey=<C-@> |
set termwinkey=<C-@> |
||
tnoremap <C-@><space> <C-w><C-w> |
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/trouble.nvim https://github.com/folke/tr] [https://github.com/folke/trouble.nvim ouble.nvi]. Unfortunately that only works with neovim ... and neovim doesn't work with termwinkey ...[https://github.com/folke/trouble.nvim m] |
Latest revision as of 13:10, 5 July 2023
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