code_junkie

Duplicate a whole line in Vim

Nov 10th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. yy (copy the line)
  2.  
  3. dd (delete the line)
  4.  
  5. p (paste the copied or deleted text **after** the current line)
  6.  
  7. P (paste the copied or deleted text **before** the current line)
  8.  
  9. nmap <C-d> mzyyp`z
Add Comment
Please, Sign In to add comment