vim
This is an old revision of the document!
Table of Contents
Yank or delete between parentheses
Motion select
These work for matching parenthesis ()
, square brackets []
, curly brackets {}
, angle brackets <>
, etc…
y% - yank d% - delete
For visual mode
v%y - highlight between parenthesis and yank v%d - highlight between parenthesis and delete
Object select
With the cursor within a block
yab - yank the block including the enclosing parenthesis dab - delete the block including the enclosing parenthesis yib - yank the block excluding the enclosing parenthesis dib - delete the block excluding the enclosing parenthesis
For visual mode
v2a) - visual select, 2 nesting levels, including the enclosing parenthesis v1i) - visual select, 1 nesting level, excluding the enclosing parenthesis
vim.1332688153.txt.gz · Last modified: 2023/08/18 18:15 (external edit)