1.0 KiB
1.0 KiB
Neovim Notes
Splits
Horizontal split:
:sp
Vertical split:
:vs
Open a file in a horizontal split:
:sp path/to/file
Open a file in a vertical split:
:vs path/to/file
Window Navigation
Move between windows with:
<C-w>h/j/k/l
Cycle through windows:
<C-w>w
Terminal
Open a terminal in the current window:
:term
Open a terminal in a horizontal split:
:sp | term
Open a terminal in a vertical split:
:vs | term
Leave terminal mode and return to normal mode:
<Esc>
Tree-sitter
Tree-sitter is managed with nvim-treesitter via vim.pack.
Installing missing parsers requires the external tools from the upstream README:
tarcurltree-sitter-cli- a C compiler
If tree-sitter is on your PATH, startup will try to install the configured parsers if they are missing.
Useful commands:
:TSUpdate
:TSInstall lua bash json
:TSInstallInfo
:InspectTree
:checkhealth vim.treesitter