How do I run a build command and jump to errors directly from Vim?
The :make command runs your build tool and parses its output into the quickfix list, letting you jump directly to each error location.
category:
command-line
tags:
#command-line
#quickfix
#build
#workflow
#programming
How do I search for a pattern in the current file and navigate results with the quickfix list?
When you need to find all occurrences of a pattern in the current file and jump between them systematically, :vimgrep with % is more powerful than basic / searc
category:
search
tags:
#search
#quickfix
#ex-commands
#navigation
How do I integrate a custom build tool like cargo or pytest with Vim's :make and quickfix workflow?
The makeprg option defines the command that :make runs.
category:
config
tags:
#config
#ex-commands
#buffers-windows
How do I quickly configure Vim to parse compiler errors for a specific language using a built-in compiler plugin?
Vim ships with built-in compiler plugins for many languages and tools — including gcc, python, cargo, eslint, tsc, and more.
category:
command-line
tags:
#ex-commands
#config
#buffers-windows
#command-line
How do I run vimgrep across a project using whatever pattern is currently in the search register?
:execute 'vimgrep /' . @/ . '/gj **/*'
If you already refined a search interactively with / or ?, retyping that pattern for project-wide grep is repetitive and error-prone.
category:
search
tags:
#search
#vimgrep
#quickfix
#registers
#workflow
How do I configure :grep to use ripgrep with quickfix output and include hidden files?
:set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --glob\ !.git
Vim's :grep becomes much more useful when grepprg is tuned for ripgrep and quickfix-compatible output.
category:
config
tags:
#config
#search
#command-line
#quickfix
How do I search many files with :vimgrep but avoid opening each hit while building quickfix?
:vimgrep /{pattern}/j **/*
For project-wide searches, :vimgrep is powerful but can feel disruptive if it jumps into files while populating quickfix.
category:
search
tags:
#search
#quickfix
#command-line
#workflow
How do I search across all of Vim's help documentation for a keyword or phrase?
:helpgrep searches the full text of every Vim help file for a pattern and loads all matches into the quickfix list.
category:
search
tags:
#search
#ex-commands
#navigation
How do I populate the quickfix list from the output of a shell command?
The :cexpr command parses any expression into the quickfix list using the current errorformat.
category:
command-line
tags:
#quickfix
#ex-commands
#command-line
#search
How do I run vimgrep across files using my last search pattern without retyping it?
Using // (an empty pattern) in :vimgrep tells Vim to reuse the last search pattern.
category:
search
tags:
#search
#ex-commands
#quickfix
How do I configure Vim's :grep command to use ripgrep for faster project-wide searching?
:set grepprg=rg\ --vimgrep\ --smart-case
By default, Vim's :grep command calls the system grep.
category:
config
tags:
#search
#ex-commands
#config
#quickfix
#advanced
How do I search for a pattern across all files in my project without leaving Vim?
:vimgrep /pattern/ searches recursively through all files in the current working directory tree using Vim's own regex engine, populating the quickfix list with
category:
search
tags:
#search
#quickfix
#ex-commands
#navigation
How do I search for a pattern across all files in a project using Vim's built-in grep?
While external tools like grep or ripgrep are fast, Vim's built-in :vimgrep has a key advantage: it populates the quickfix list directly, so you can jump betwee
category:
search
tags:
#search
#quickfix
#ex-commands
#navigation
How do I navigate through the quickfix list?
The quickfix list holds a set of file positions, typically from compiler errors, grep results, or other tools.
category:
navigation
tags:
#navigation
#ex-commands
#buffers
How do I run a search and replace across multiple files?
:cfdo %s/old/new/g | update
The :cfdo %s/old/new/g update command performs a search and replace across every file in the quickfix list and saves each one.
category:
command-line
tags:
#command-line
#ex-commands
#search
#editing
How do I configure quickfix parsing for grep output with file, line, and column?
:set grepformat=%f:%l:%c:%m
When :grep output does not land cleanly in quickfix, the parser format is usually the missing piece.
category:
config
tags:
#config
#quickfix
#grep
#ex-commands
How do I configure Vim to use ripgrep as its built-in grep program?
:set grepprg=rg\ --vimgrep
Vim's :grep command uses an external program to search files and populate the quickfix list.
category:
config
tags:
#config
#grep
#ripgrep
#search
How do I preview quickfix entries without leaving the quickfix window?
The preview window shows file contents temporarily without switching your editing context.
category:
buffers-windows
tags:
#buffers-windows
#quickfix
#preview
#navigation
How do I add another project-wide pattern search without replacing my current quickfix results?
:vimgrepadd /pattern/j **/*<CR>
When you are investigating code, you often need to collect several related patterns before deciding what to edit.
category:
search
tags:
#search
#quickfix
#command-line
#navigation
How do I keep the quickfix window height from resizing when splitting?
Quickfix windows are easy to disturb when you open, close, or rebalance other splits.
category:
buffers-windows
tags:
#buffers
#windows
#quickfix
#layout