How do I change the color scheme in Vim?
:colorscheme name
The :colorscheme command changes the visual theme of Vim.
:colorscheme name
The :colorscheme command changes the visual theme of Vim.
:set cursorline
The cursorline option highlights the entire line where the cursor is positioned.
:filetype plugin indent on
The filetype plugin indent on command enables three key features: file type detection, filetype plugins, and filetype-based indentation.
:set number
The number option displays absolute line numbers in the left margin.
:set nowrap
The nowrap option prevents long lines from wrapping to the next screen line.
:set autoindent
The autoindent option copies the indentation from the current line when starting a new line.
:highlight Group ctermfg=color
The :highlight command changes the appearance of a highlight group.
:set statusline=%f\ %m%r%=%l/%L
The statusline option controls what information is shown in the status bar at the bottom of each window.
:nnoremap key command
The :nnoremap command creates a non-recursive normal mode mapping.
augroup name | autocmd! | ... | augroup END
Using augroup with autocmd! inside prevents duplicate autocommands from accumulating when you reload your vimrc.
:set completeopt=menu,menuone,noselect
The completeopt option controls the behavior of the completion popup menu.
:{range}w filename
The :w command with a range and filename saves only the specified lines to a new file.
:verbose set option?
The :verbose prefix shows where an option was last set (which file, which line).
:help topic
Vim has an extensive built-in help system.
:b {number}
The :b command followed by a buffer number switches directly to that buffer.
:{start},{end} command
Ex commands accept range specifiers that control which lines are affected.
<C-w>r
The r command rotates windows in the current row or column.
gt and gT
The gt command moves to the next tab page and gT moves to the previous one.
:set option
The :set command changes Vim options for the current session.
:silent command
The :silent prefix suppresses all output from a command, including messages and prompts.