How do I clear all entries from the quickfix list in Vim?
:cexpr []
After a :grep, :make, or :vimgrep run, the quickfix list fills with results.
command-line #command-line #buffers-windows #quickfix #ex-commands
2125 results for "i( a("
:cexpr []
After a :grep, :make, or :vimgrep run, the quickfix list fills with results.
command-line #command-line #buffers-windows #quickfix #ex-commands
:%s/foo/bar/g | %s/baz/qux/g | w
The (bar) character in Vim's command line acts as a command separator, allowing you to chain multiple ex commands together on a single line.
:'<,'>m'>+1
The :m command with the visual range moves selected lines.
gO
Since Neovim 0.
<C-v>I
Visual block mode's I command lets you type once and have the text inserted at the cursor column across all selected lines simultaneously.
:<C-f>
Long Ex commands are easy to mistype when you edit inline on a single command line.
]'
The ]' command jumps to the start of the line containing the next lowercase mark in the file, while [' jumps to the previous one.
'^
Vim automatically maintains a special mark ^ that records the exact position of the cursor the last time you left insert mode.
vim.lsp.status()
vim.
zs and ze
When nowrap is set and lines extend beyond the screen width, zs and ze snap the horizontal scroll position so the cursor sits exactly at the left or right edge
:set winheight=999 winminheight=5
Setting winheight to a very large number forces Vim to always try to make the focused window as tall as possible.
:lua require('harpoon.mark').add_file()
Harpoon by ThePrimeagen is a Neovim plugin that maintains a small, numbered list of the files you're actively working on.
:set jumpoptions+=view
By default, when you navigate the jump list with (older) or (newer), Neovim restores the cursor's line and column but does NOT restore where the window was scro
W, B, and E
How it works Vim distinguishes between two types of word objects: A word (lowercase w, b, e) is a sequence of letters, digits, and underscores, or a sequence of
:set completeopt=menu,menuone,noselect
The completeopt option controls the behavior of the completion popup menu.
]s / [s / z=
Vim has a built-in spell checker that highlights misspelled words and provides correction suggestions — all without plugins.
d/END/e<CR>
When you need to remove text up to a known marker, a plain search motion is often almost right but stops at the start of the match.
mf and D (in netrw)
Vim's built-in file browser netrw (opened with :Explore or :Ex) supports a full file management workflow beyond simple navigation.
:sort! n
The :sort! n command sorts the lines of a buffer (or a range) by their numeric value in descending order.
ii / ai
The vim-indent-object plugin by Michael Smith adds text objects based on indentation level, giving you ii (inner indent) and ai (an indent) to select, delete, c