Jan 9, 2012

vim editor commands

Copy paste text between different files


  • open the file from which you want to copy in vim editor, vim file1
  • go to top line to be copied
  • press ESC and then press ma
  • move cursor to the bottom line and then press y'a
  • then type  :split file2 ( don't forget colon )
  • go to the line where you want to paste and then press p
  • press :wq to exit second file. 
  • now open second file in vim. The lines will have pasted there.

For Web Developer

  open -a "Google Chrome" --args --disable-web-security