Home Download Buy Blog Forum Support

Vintage mode and 'D" in visual mode

Vintage mode and 'D" in visual mode

Postby sheamus on Wed Jun 13, 2012 7:36 am

Likely one of the things I miss most about Vim when using other editors is manipulating lines of text. Most editors do everything character based. So if you want to select 2 lines, you actually highlight the two full lines plus the newline. In Vim, when you select part of line one, and part of line two and press 'd' it behaves like ctrl-x. But if you hit 'D' it cuts both of those entire lines.

Then in Vim when you past those lines, it pastes them starting on the line below the cursor.

This makes it so much faster for manipulating blocks of text. Using visual mode and D, then p, does not behave very much like vim or vi.

Thanks for the great work, getting close.
sheamus
 
Posts: 19
Joined: Wed May 30, 2012 12:48 am

Re: Vintage mode and 'D" in visual mode

Postby sheamus on Wed Jun 13, 2012 7:41 am

Hmm... seems that dd doesn't work right either if you specify a count. i.e., '2dd' cuts two lines, but only pastes one....
sheamus
 
Posts: 19
Joined: Wed May 30, 2012 12:48 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 21 guests