Article ID : 27

Started using Vim(4): Copy a block of code

icn_MacVim_128.png

  1. press Esc to change into command mode
  2. put cursor on the beginning of textblock you want to copy (Shift^ for example)
  3. press v (vim will enter VISUAL mode)
  4. move cursor to the end of textblock
  5. press y to copy (or x for cut operation)
  6. move cursor to the place you want to paste the text, then press p

Comments (0)

< No Comments >

Post Your Comment

(Options)


(Smile) (Wink) (Laugh) (Foot in mouth) (Frown) (Gasp) (Cool) (Tongue) (Ambivalent) (Angry) (Undecided) (Yum) (Cry) (Sealed) (Touched) (Sleep) (Strong) (Focus) (Confused) (Embarasssed)

*s are required. e-mail won't be publicized.

CAPTCHAâ„¢ Code

Trackbacks (0)

< No Trackbacks >

Track from Your Website