Sublime Forum

Vintage mode and 'D" in visual mode

#1

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.

0 Likes

#2

Hmm… seems that dd doesn’t work right either if you specify a count. i.e., ‘2dd’ cuts two lines, but only pastes one…

0 Likes