Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I copy a vertical text block in vim on a Mac?

On a PC on would just do ctrl-c at starting point and ctrl-c at the end point and it would copy between these two coordinates. How do I do that on a Mac?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Don't know if Vim under Mac is different, but in Linux you can do this - press Ctrl+V to enter VISUAL BLOCK mode, then select usually (e.g. move with hjkl), then y to yank when done.

share|improve this answer
    
Awesome. Didnt know there was a visual block mode. –  Guhlino Feb 22 '12 at 8:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.