Configuring Vim & Neovim
Essential Settings
set number " Show line numbers
set relativenumber " Relative line numbers (great for motions!)
set hidden " Allow switching buffers without saving
set path+=.,** " Enable gf and :find to search recursively
set showcmd " Show partial commands and selection count
set wildmenu " Enhanced command-line completion
set wildmode=longest:full,full
set scrolloff=8 " Keep 8 lines visible above/below cursor
set sidescrolloff=8 " Keep 8 columns visible left/right
set signcolumn=yes " Always show the sign column
set cursorline " Highlight the current line
set termguicolors " Enable 24-bit color
set undofile " Persistent undo (survives closing Vim)
set updatetime=250 " Faster CursorHold events
set timeoutlen=300 " Faster key sequence completionSearch Settings
Indentation
Popup Menu and Completion UI (Neovim)
Colorschemes
Setting a Colorscheme
Change Background Based on Time
Popular Colorschemes
Autocommands
Neovim Terminal Autocommands
Modelines
Secure Modelines Configuration
Version Control for Config
Bootstrapping
Summary
Exercises
Last updated
Was this helpful?