How do I open all loaded buffers into split windows at once?
:sball
The :sball command (short for split all) opens every loaded buffer in its own horizontal split window in one shot.
795 results for "G"
:sball
The :sball command (short for split all) opens every loaded buffer in its own horizontal split window in one shot.
set foldmarker=start,end
When using foldmethod=marker, Vim uses {{{ and }}} as the default fold open and close markers.
<C-k>{digraph}
Vim's digraph system lets you insert special characters, accented letters, and symbols by typing a memorable two-character sequence.
`"
The " mark is an automatic mark Vim sets whenever you leave a buffer — switching to another file, hiding the buffer, or quitting Vim (with viminfo/shada enabl
:put =toupper(@")
Registers in Vim are not only for raw replay; you can treat them as string data and transform them at paste time.
registers #registers #expression-register #editing #vimscript
:%normal @q
To apply a macro to every line in the file, use :%normal @q.
/pattern\@<=match
Vim supports zero-width assertions (lookahead and lookbehind) in its regex engine, allowing you to match text based on what precedes or follows it without inclu
:s/\(\w\+\) \(\w\+\)/\=submatch(2) . ' ' . submatch(1)/
The submatch(N) function lets you access individual capture groups inside a \= (expression replacement) in a substitution.
:reg {names}
The :registers command dumps every register at once, which is noisy when you only care about a handful.
,
After using f, t, F, or T for single-character motion on a line, Vim lets you repeat that character search without retyping the target.
:%s/\v^([^,]+),([^,]+),/\2,\1,/<CR>
When CSV-like data has two columns in the wrong order, manually fixing each line is slow and error-prone.
qq;.q then @q or @@
The dot command (.
:snomagic /foo.\+/bar/<CR>
When a pattern is mostly literal text with just a little regex, default magic mode can force extra escaping and make substitutions harder to read.
:[range]center [width]
Vim's built-in :left, :center, and :right Ex commands align text without plugins or external tools.
:set nrformats=
The nrformats option controls which number formats (increment) and (decrement) recognize.
:%s/\v(\S+)\s+(\S+)/\2 \1/<CR>
When you need to flip two fields across a whole file, a single substitution is faster and safer than recording a macro.
editing #editing #substitution #regex #ex-commands #formatting
\%(...\)
Vim's standard grouping syntax \(.
\%[seq]
Vim's \%[seq] atom makes the sequence seq optional in a pattern — matching any prefix of the sequence (including nothing).
:s/\v(pattern1)(pattern2)/\2\1/
Vim's substitute command supports capture groups (also called backreferences), which let you rearrange matched portions of text.
:set nrformats+=alpha
By default, and only increment and decrement numbers (decimal, hex, and octal depending on format).