Vim
Vim and Neovim: Installation and Versions
- Vim: Welcome Home : Vim Online
- Neovim: Home - Neovim
- The Only Video You Need to Get Started with Neovim - YouTube
- GitHub - nvim-lua/kickstart.nvim: A launch point for your personal nvim configuration
Configurations
- AstroNvim: AstroNvim
- LazyVim: 🚀 Getting Started | LazyVim
- NvChad: NvChad
Cheat Sheets
Books
Text Objects
Vim introduces "text objects" for seamless manipulation of text blocks. For a deeper dive, execute :help 'text-objects'
in Vim. A primer on basic objects includes:
w
: Jumps to the start of the next word.W
: Leaps to the start of the next word, bypassing punctuation.vis
: Start visual selection inside the sentence.vip
: Start visual selection inside the paragraph.
Coding
For coding, these commands prove indispensable:
ci[
: Alter the content within the brackets.vit
: Visually select everything inside the HTML tag.- Formatting:
=i{
automatically formats the content within curly braces.
Treesitter Objects
Explore the syntax-aware editing features with Treesitter - Neovim docs.
Inline Search
Navigate swiftly to specific characters on a line with these commands:
f
: Jump to the next occurrence of a character on the current line.F
: Jump back to the previous occurrence of a character on the current line.t
: Move to right before the next occurrence of a character on the current line.T
: Move to right after the previous occurrence of a character on the current line.
Flash
Navigate your code efficiently with search labels and enhanced character motions through Treesitter integration at GitHub - folke/flash.nvim.
Netrw
Explore files and URLs directly from Vim/Neovim with gf
, gF
, and gx
commands, enhancing your browsing experience.
Autocomplete
Leverage ctrl-x
followed by:
ctrl-l
for whole line completions,ctrl-n
for keyword completion from the current file and included files,- and others for diverse autocomplete options.
Quick-fix
Adopt a seamless cycle of editing, compiling/linting/testing, and returning to edit, streamlining your development workflow.