How do I delete, change, or yank an entire sentence as a text object in Vim?
das
Vim defines a sentence as text ending with .
editing #editing #text-objects #delete #normal-mode #motions
432 results for "visual mode"
das
Vim defines a sentence as text ending with .
editing #editing #text-objects #delete #normal-mode #motions
:set mouse=a
How it works The :set mouse=a command enables mouse support in all Vim modes.
:center, :right, :left
Vim includes three built-in Ex commands for text alignment that most users never discover: :center, :right, and :left.
:source % or :'<,'>source
The :source command executes Vimscript from a file.
command-line #command-line #vimscript #workflow #development
:keepmarks
When Vim executes commands that move or reorder lines — such as :sort, :%!sort, or :s/// across ranges — it automatically adjusts named marks to follow the
qa I1. <Esc>j q
This simple macro inserts a list number prefix at the beginning of each line.
gl{motion}{char}
vim-lion (by Tom McDonald) adds gl and gL as alignment operators.
!{motion}{cmd}<CR>
In normal mode, !{motion} sends the lines covered by the motion to a shell command's stdin and replaces them with stdout.
gcc to toggle line
Comment.
gR
gR enters Virtual Replace mode, a smarter variant of Replace mode (R) that replaces characters based on screen columns rather than raw bytes.
:{range}command
Every Ex command in Vim can be preceded by a range that specifies which lines it should operate on.
command-line #command-line #ex-commands #ranges #editing #productivity
:set concealcursor=nv
The 'concealcursor' option controls in which modes concealed text is revealed on the cursor line.
:[range]norm @{register}
The :normal command executes normal-mode keystrokes on each line in a range — including macro playback.
>>
The >> command shifts the current line one shiftwidth to the right, adding indentation.
:DB sqlite:mydb.sqlite SELECT * FROM users
vim-dadbod by Tim Pope is a plugin that lets you interact with databases directly from Vim.
ysiw)
The vim-surround plugin provides the ys (you surround) operator to wrap any Vim text object or motion with a delimiter pair.
plugins #plugins #surround #editing #text-objects #normal-mode
gj
The gj command moves the cursor down by one display line rather than one physical line.
:[range]right {width}
Vim has built-in Ex commands for text alignment — :right, :left, and :center — that work over any line range without plugins.
command-line #formatting #indentation #command-line #ex-commands
:[range]join
The :[range]join Ex command lets you join lines by specifying an explicit line range — without having to navigate there or use visual selection.
:set nrformats+=alpha
By default, and only increment and decrement numbers (decimal, hex, and octal depending on format).