How do I run a shell command from inside Vim?
:!command
The :!command syntax lets you execute any shell command directly from within Vim without leaving the editor.
2125 results for "i" a""
:!command
The :!command syntax lets you execute any shell command directly from within Vim without leaving the editor.
:[range]center [width]
Vim's built-in :left, :center, and :right Ex commands align text without plugins or external tools.
do and dp
When comparing files with :vimdiff or :diffthis, Vim highlights each difference as a hunk.
gcc
The vim-commentary plugin by Tim Pope provides a minimal yet powerful way to toggle comments in any programming language.
plugins #plugins #commentary #commenting #editing #normal-mode
.
The .
:normal!
The :normal! command (with !) executes normal mode keystrokes exactly as Vim defines them, ignoring any user-defined mappings.
gnn / grn / grm
nvim-treesitter's incremental selection module lets you grow and shrink your visual selection one syntax node at a time.
:DB sqlite:mydb.sqlite SELECT * FROM users
vim-dadbod by Tim Pope is a plugin that lets you interact with databases directly from Vim.
:source % or :'<,'>source
The :source command executes Vimscript from a file.
command-line #command-line #vimscript #workflow #development
:stopinsert
:stopinsert is an Ex command that immediately exits insert (or replace) mode and returns to normal mode.
command-line #insert-mode #ex-commands #autocommands #normal-mode
v_o
When you start a visual selection, the cursor is at one end and the anchor is at the other.
:bufdo {cmd}
:bufdo executes an Ex command in each open buffer in sequence, cycling through every buffer in the buffer list.
<C-w>| and <C-w>_ / <C-w>=
Vim lets you temporarily maximize a split window to full width or full height, and then restore all windows to equal sizes with =.
buffers-windows #windows #splits #navigation #productivity #layout
S"
The vim-surround plugin provides the S command in visual mode to wrap any selection with a delimiter pair.
:set regexpengine=1
Vim ships with two regex engines and lets you control which one is used.
:help registers
Vim has 10 types of registers, each serving a specific purpose.
:jumps
How it works Vim keeps a jump list that records your cursor position every time you make a jump.
:put =strftime('%Y-%m-%d')
The :put = command inserts the result of a Vimscript expression directly into the buffer as a new line.
:Gdiffsplit
The vim-fugitive plugin provides :Gdiffsplit (and its vertical variant :Gvdiffsplit) to open a side-by-side diff view comparing the working tree version of a fi
:%Subvert/old/new/g
The vim-abolish plugin by Tim Pope provides the :Subvert command (abbreviated :S), which performs search-and-replace operations that automatically handle every