How do I configure Vim's command-line completion to first expand to the longest match, then show a list?
set wildmode=longest:list,full
Setting wildmode=longest:list,full gives Vim a completion behavior similar to shells like bash and zsh.
488 results for ":e!"
set wildmode=longest:list,full
Setting wildmode=longest:list,full gives Vim a completion behavior similar to shells like bash and zsh.
:!command
The :!command syntax lets you execute any shell command directly from within Vim without leaving the editor.
:reg a
The :reg a command shows the contents of register a, which reveals the keystrokes stored in the macro.
"# register
The # register contains the name of the alternate file — the previously edited file in the current window.
:set nrformats
The nrformats option tells Vim how to interpret numbers when you press (increment) or (decrement).
:autocmd Event pattern command
Autocommands let you execute commands automatically in response to events like opening a file, saving, or changing buffers.
qa{motions}@aq
A recursive macro is one that calls itself at the end of its own recording.
qa{actions}@aq
A recursive macro is one that calls itself as its final action, causing it to repeat indefinitely until any command in the body fails (e.
:bufdo command
The :bufdo command executes an Ex command on every buffer in the buffer list.
:set shortmess-=S
The shortmess option controls which messages are shortened.
:command Name action
The :command command defines a new user Ex command.
{count}|
The command moves the cursor to a specific screen column on the current line.
:%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.
v
The v command enters character-wise visual mode, letting you select text one character at a time.
<C-r>=system('cmd')
In command-line mode, =system('command') evaluates the shell command and inserts its output into the command line.
:set completeopt=menu,menuone,noselect
The completeopt option controls the behavior of the completion popup menu.
<Leader><Leader>w
The vim-easymotion plugin replaces Vim's default motion commands with a visual overlay system that lets you jump to any visible position on screen in just two o
v/pattern<CR>
Starting a search while in visual mode extends the selection to the search match.
:args **/*.js | argdo %s/old/new/ge | update
The argument list (arglist) is Vim's mechanism for loading a set of files and running commands across all of them.
command-line #command-line #ex-commands #arglist #productivity #batch #editing
:<line-number>
When you know the exact line number you want to navigate to, the colon command is the quickest way to get there.