History
Article Edit this page Discussion

Selecting blocks of paragraphs

From Vim Tips Wiki

Jump to: navigation, search

Tip 876 Previous Next Created: February 15, 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''

 TO DO 
Fix above:

  1. The ( and ) move by a sentence, not a paragraph.
  2. Tip should use vip to select a paragraph.
  3. Fix the key used for the mapping.

[edit] Comments

You can select a paragraph by typing vip or vap

See :help v_ip (vip = visual inner paragraph).

In general, use :help v_<whatever> for help on <whatever> in visual mode.

Or :help c_<whatever> for the command line, or :help i_<whatever> for insert mode.


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Pixar
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Dark Shadows
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions


Vote for collaboration of the month.

Send this article to a friend
"Selecting blocks of paragraphs"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation