loading...

Discussion on: Demystifying vim

Collapse
rattanakchea profile image
Rattanak Chea

This needs to go to my vim cheatsheet. Is there a part 2? How can I copy and paste a section of text?

Collapse
jerpint profile image
jerpint

v Will get you in visual mode. You can highlight the section you want, then yank (copy) with y. To paste, use p. You don't need to visually select to copy/paste. You could yank the word yw, or yank to the end of the line y$ , or yank the entire line yy

Collapse
vlasales profile image
Vlastimil Pospichal

V will get you in select mode. It's little diferent from visual mode, but commands are similar.

Thread Thread
tbodt profile image
tbodt

V is visual line mode, not select mode. It's the same as visual mode but it's line oriented, so you're cutting or pasting entire lines and not characters.