How do I choose from multiple tag matches when a tag has several definitions?
:tselect
When a tag has multiple definitions (e.
488 results for ":e!"
:tselect
When a tag has multiple definitions (e.
Create plugin/myplugin.vim
A basic Vim plugin is just a .
Harpoon: mark files and jump with <leader>1-4
Harpoon by ThePrimeagen provides instant access to a curated list of files you're actively working on.
ge
The ge motion moves the cursor backward to the end of the previous word.
ce
The ce command changes from the cursor position to the end of the current word.
:set hidden
By default, Vim refuses to let you switch away from a buffer that has unsaved changes, forcing you to save or discard with :w or :e! before moving on.
autocmd FileType {lang} setlocal {options}
Vim's autocmd FileType lets you apply settings that only take effect when editing a specific file type.
:Explore / :Vexplore / :Sexplore
Vim ships with netrw, a built-in file explorer that lets you browse directories, open files, create new files, rename, and delete — all without plugins.
buffers-windows #navigation #buffers #file-management #netrw #productivity
<leader><leader>w
vim-easymotion lets you jump to any visible position by highlighting targets with unique letters.
vim-repeat
The vim-repeat plugin by Tim Pope extends Vim's built-in .
plugins #plugins #repeat #dot-command #workflow #normal-mode
:set undofile
By default, Vim's undo history is lost when you close a file.
:set scrolloff=5
The scrolloff option keeps a minimum number of lines visible above and below the cursor when scrolling.
<C-v>jjr<C-k>12
Visual block mode combined with the replace command and digraph input lets you replace a column of characters with special Unicode characters.
:setlocal iskeyword+=-
The iskeyword option defines which characters are part of a "word" for motions like w, b, e, , and text objects like iw.
:echo @%
Vim provides special read-only registers that hold the current and alternate filenames.
@a (within macro @b)
Vim macros can call other macros, enabling modular macro composition.
:g/./t.\<CR>
The :global command can apply an Ex action to every line that matches a pattern.
gUU
The gUU command uppercases every character on the current line instantly — no visual selection or motion required.
<C-n> / <C-p>
Vim has a powerful built-in completion system that requires zero plugins.
:set {option}&
Append & to any :set command to reset that option to its compiled-in default value — the value Vim shipped with before any vimrc or plugin changed it.