Selecting blocks of paragraphs
From Vim Tips Wiki
created 2005 · complexity basic · author Dane Summers · version 6.0
Here are two mappings that help copy SQL queries from gvim to other applications running under Windows.
"Select all of current paragraph. :map <C-S-v> (V) "Copy all of current paragraph to clipboard. :map <C-S-v> (V)*y''
)move by a sentence, not a paragraph.
- Tip should use
vipto select a paragraph.
- Fix the key used for the mapping.
You can select a paragraph by typing
See :help v_ip (vip = visual inner paragraph).
In general, use
:help v_<whatever> for help on <whatever> in visual mode.
:help c_<whatever> for the command line, or
:help i_<whatever> for insert mode.