How do I make Vim's command-line tab completion case-insensitive for file and buffer names?
:set wildignorecase makes Vim's command-line tab completion treat uppercase and lowercase letters as equivalent when completing file names, buffer names, and ot
category:
command-line
tags:
#command-line
#completion
#config
#ex-commands
How do I jump back to my previous cursor position?
The (Ctrl+o) command jumps the cursor backward through the jump list, returning you to previous cursor positions.
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I save multiple different views of the same file with independent fold and cursor states?
:mkview 2 and :loadview 2
Vim supports up to 9 numbered view slots per file.
category:
buffers-windows
tags:
#folding
#buffers-windows
#navigation
#config
How do I make Vim spell check CamelCase and mixedCase identifiers as individual words?
By default, Vim treats camelCase as a single word and flags it as a spelling error even when both camel and case are correctly spelled.
category:
config
tags:
#config
#spell
#editing
How do I open the directory containing the current file in netrw from within Vim?
The command :e %:h opens netrw (Vim's built-in file browser) in the directory that contains the current file.
category:
command-line
tags:
#command-line
#navigation
#buffers
#netrw
#editing
How do I browse files more naturally using vim-vinegar's enhanced netrw integration?
vim-vinegar is a lightweight plugin by Tim Pope that enhances Vim's built-in file browser (netrw) with a simpler, more intuitive workflow.
category:
plugins
tags:
#plugins
#navigation
#buffers-windows
How do I briefly highlight text after yanking it to get visual confirmation of what was copied?
The TextYankPost event fires immediately after any yank operation completes — including y, Y, dd, dw, and any other command that writes to a register.
category:
config
tags:
#config
#autocommands
#registers
#visual-mode
How do I control how many columns Vim scrolls horizontally at once when the cursor reaches the screen edge?
When wrap is off and the cursor moves past the edge of the screen, Vim jumps the view horizontally by a number of columns determined by sidescroll.
category:
config
tags:
#config
#navigation
#editing
How do I populate the quickfix list from the output of an external shell command?
:cexpr system('grep -rn TODO .')
The :cexpr command evaluates an expression and parses the result as quickfix entries using the current errorformat.
category:
command-line
tags:
#ex-commands
#search
#editing
#buffers
How do I read man pages inside Neovim with syntax highlighting and tag navigation?
Neovim ships with a built-in :Man command (the man.
category:
command-line
tags:
#neovim
#navigation
#documentation
#command-line
How do I make the fold column appear only when needed and cap its width?
If you use folds heavily, a fixed fold column is a tradeoff: foldcolumn=0 hides useful fold cues, while a constant width wastes horizontal space in files that b
category:
config
tags:
#config
#folding
#ui
#windows
How do I set up auto-correct abbreviations in Vim to fix common typos?
Vim's abbreviation system automatically expands short text sequences as you type, making it perfect for auto-correcting typos, inserting boilerplate snippets, o
category:
config
tags:
#editing
#insert-mode
#config
#productivity
#auto-correct
How do I search for text that simultaneously matches two different patterns using Vim's AND operator?
Vim's \& operator lets you intersect two patterns so the match must satisfy both simultaneously.
category:
search
tags:
#search
#regex
#normal-mode
How do I configure Vim to find files recursively in subdirectories?
Adding to the path option tells Vim to search recursively through all subdirectories when using :find, gf, and other path-related commands.
category:
config
tags:
#config
#path
#find
#file-navigation
How do I view Git log with graph visualization inside Vim using fugitive?
:Git log --oneline --graph
Tim Pope's vim-fugitive provides a complete Git interface inside Vim.
category:
plugins
tags:
#plugins
#git
#fugitive
#version-control
How do I quickly convert between snake_case, camelCase, and other naming conventions in Vim?
The vim-abolish plugin by Tim Pope provides instant case coercion commands that convert the word under your cursor between common naming conventions.
category:
plugins
tags:
#plugins
#abolish
#editing
#refactoring
#naming
How do I jump forward by sentence in Vim?
The ) motion moves the cursor to the beginning of the next sentence.
category:
navigation
tags:
#navigation
#motions
#normal-mode
#text-objects
How do I register custom filetype detection rules in Neovim using Lua without editing filetype.vim?
vim.
category:
config
tags:
#filetype
#neovim
#lua
#config
How do I paste text above the current line?
The P (uppercase) command pastes the contents of the default register before the cursor position.
category:
editing
tags:
#editing
#registers
#normal-mode
How do I select the text I just pasted or changed?
The ` [v] sequence visually selects the exact region of text that was last changed, pasted, or yanked into the buffer.
category:
visual-mode
tags:
#editing
#visual-mode
#marks
#paste
#productivity