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.
2125 results for "i( a("
:sball
The :sball command (short for split all) opens every loaded buffer in its own horizontal split window in one shot.
set pumblend=10
Neovim supports pseudo-transparency for the completion popup menu via pumblend and for floating windows via winblend.
:argdedupe
If you build an arglist incrementally (:args, :argadd, glob expansions), duplicates can sneak in and make :argdo workflows slower or confusing.
command-line #command-line #arglist #batch-editing #workflow
:%bd | e#
How it works Vim does not have a built-in single command to close all buffers except the current one, but you can achieve this with a two-part command: :%bd e#.
<C-o>{cmd}
Pressing in insert mode lets you execute one normal mode command and then automatically returns you to insert mode.
:sort u
The :sort u command sorts all lines in the buffer (or a selected range) alphabetically and removes duplicate lines in a single pass.
:vimgrep /pattern/ **/*.ext | copen
The :vimgrep command searches for a regex pattern across multiple files and populates the quickfix list with every match.
search #search #quickfix #ex-commands #navigation #productivity #grep
<C-v>jjI
Visual block mode () lets you select a rectangular region across lines.
:earlier {time} / :later {time}
Vim's :earlier and :later commands let you navigate the undo history by wall-clock time rather than by individual undo steps.
editing #editing #undo-redo #ex-commands #advanced #productivity
vim.ui.select()
Neovim exposes vim.
) and (
The ) and ( motions move by sentence boundaries.
o and O
In visual-block mode (), pressing o moves the cursor to the diagonally opposite corner of the selection, and O moves it to the other end of the same row (flippi
:set autochdir
The autochdir option tells Vim to automatically change the current working directory to the directory of the file in the active window whenever you switch buffe
qq;.q then @q or @@
The dot command (.
R (in netrw)
Vim's built-in file explorer netrw lets you rename files and directories without leaving the editor.
<C-n> to select (vim-visual-multi)
vim-visual-multi provides VS Code-style multiple cursor support for Vim.
q:
The command-line window is a special buffer that shows your entire Ex command history and lets you edit entries using the full power of Vim's normal mode before
command-line #command-line #ex-commands #history #editing #productivity
yiw{nav}viwp{nav}viwp
When you paste over a visual selection in Vim, the displaced text is moved into the unnamed register "".
registers #registers #visual-mode #editing #text-objects #normal-mode
:colder
Vim maintains a history stack of up to 10 quickfix lists.
buffers-windows #buffers-windows #navigation #ex-commands #search
:set digraph
With :set digraph enabled, you can enter special characters in insert mode by typing the two-character digraph code followed by (backspace).
config #insert-mode #digraphs #unicode #special-characters #config