{motion}
uppercase
|v_g?| {visual}g? perform rot13 encoding on highlighted text
|g?| g?{motion} perform rot13 encoding on the text that is moved over
with {motion}
|CTRL-A| N CTRL-A add N to the number at or after the cursor
|CTRL-X| N CTRL-X subtract N from the number at or after the cursor
|<| N <{motion} move the lines that are moved over with {motion} one
shiftwidth left
|<<| N << move N lines one shiftwidth left
|>| N >{motion} move the lines that are moved over with {motion} one
shiftwidth right
|>>| N >> move N lines one shiftwidth right
|gq| N gq{motion} format the lines that are moved over with {motion} to
'textwidth' length
|:ce| :[range]ce[nter] [width]
center the lines in [range]
|:le| :[range]le[ft] [indent]
left-align the lines in [range] (with [indent])
|:ri| :[range]ri[ght] [width]
right-align the lines in [range]
------------------------------------------------------------------------------
*Q_co* Complex changes
|!| N !{motion}{command}<CR>
filter the lines that are moved over through {command}
|!!| N !!{command}<CR>
filter N lines through {command}
|v_!| {visual}!{command}<CR>
filter the highlighted lines through {command}
|:range!| :[range]! {command}<CR>
filter [range] lines through {command}
|=| N ={motion}
filter the lines that are moved over through 'equalprg'
|==| N == filter N lines through 'equalprg'
|v_=| {visual}=
filter the highlighted lines through 'equalprg'
|:s| :[range]s[ubstitute]/{pattern}/{string}/[g][c]
substitute {pattern} by {string} in [range] lines;
with [g], replace all occurrences of {pattern};
with [c], confirm each replacement
|:s| :[range]s[ubstitute] [g][c]
repeat previous ":s" with new range and options
|&| & Repeat previous ":s" on current line without options
|:ret| :[range]ret[ab][!] [tabstop]
set 'tabstop' to new value and adjust white space
accordingly
------------------------------------------------------------------------------
*Q_vi* Visual mode
|visual-index| list of Visual mode commands.
|v| v start highlighting characters } move cursor and use
|V| V start highlighting linewise } operator to affect
|CTRL-V| CTRL-V start highlighting blockwise } highlighted text
|v_o| o exchange cursor position with start of highlighting
|gv| gv start highlighting on previous visual area
|v_v| v highlight characters or stop highlighting
|v_V| V highlight linewise or stop highlighting
|v_CTRL-V| CTRL-V highlight blockwise or stop highlighting
------------------------------------------------------------------------------
*Q_to* Text objects (only in Visual mode or after an operator)
|v_aw| N aw Select "a word"
|v_iw| N iw Select "inner word"
|v_aW| N aW Select "a |WORD|"
|v_iW| N iW Select "inner |WORD|"
|v_as| N as Select "a sentence"
|v_is| N is Select "inner sentence"
|v_ap| N ap Select "a paragraph"
|v_ip| N ip Select "inner paragraph"
|v_ab| N ab Select "a block" (from "[(" to "])")
|v_ib| N ib Select "inner block" (from "[(" to "])")
|v_aB| N aB Select "a Block" (from `[{` to `]}`)
|v_iB| N iB Select "inner Block" (from `[{` to `]}`)
|v_a>| N a> Select "a <> block"
|v_i>| N i> Select "inner <> block"
|v_at| N at Select "a tag block" (from <aaa> to </aaa>)
|v_it| N it Select "inner tag block" (from <aaa> to </aaa>)
|v_a'| N a' Select "a single quoted string"
|v_i'| N i' Select "inner single quoted string"
|v_aquote| N a" Select "a double quoted string"
|v_iquote| N i" Select "inner double quoted string"
|v_a`| N a` Select "a backward quoted string"
|v_i`| N i` Select "inner backward quoted string"
------------------------------------------------------------------------------
*Q_re* Repeating commands
|.| N . repeat last change (with count replaced with N)
|q| q{a-z}
Title: Nvim Quick Reference: Complex Changes, Visual Mode, Text Objects, and Repeating Commands
Summary
This section covers complex changes in Nvim, including filtering lines through external commands (!, !!), using 'equalprg' (=, ==), substituting text (:s, &), and adjusting whitespace (:ret). It details Visual mode commands (v, V, CTRL-V, o, gv), text objects for selecting words, sentences, paragraphs, blocks, and quoted strings (aw, iw, as, is, ap, ip, ab, ib, aB, iB, a>, i>, at, it, a', i', a", i", a`, i`), and repeating commands (.) with an optional count (N).