Gideon's notes about technology

Semiconductors, Linux, security and robotic notes

Friday, November 07, 2008

vi copy and paste format problem

when copy and paste in vi it automatically inserts many annoying indents and tabs. To disable the auto indents and formatting, use this command before you paste

:set paste


and paste your codes. After that, set it back

:set nopaste
Posted by Gideon at 8:09 AM 1 comment:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Linux tips and tricks
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2018 (2)
    • ►  March (2)
  • ►  2017 (7)
    • ►  October (1)
    • ►  August (1)
    • ►  June (1)
    • ►  March (2)
    • ►  February (2)
  • ►  2016 (6)
    • ►  December (3)
    • ►  November (2)
    • ►  October (1)
  • ►  2015 (1)
    • ►  March (1)
  • ►  2014 (4)
    • ►  May (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2013 (16)
    • ►  September (1)
    • ►  August (3)
    • ►  July (1)
    • ►  February (5)
    • ►  January (6)
  • ►  2012 (11)
    • ►  August (5)
    • ►  July (2)
    • ►  June (2)
    • ►  February (2)
  • ►  2011 (6)
    • ►  February (5)
    • ►  January (1)
  • ►  2010 (1)
    • ►  December (1)
  • ►  2009 (2)
    • ►  October (2)
  • ▼  2008 (6)
    • ▼  November (1)
      • vi copy and paste format problem
    • ►  September (3)
    • ►  August (1)
    • ►  July (1)
  • ►  2007 (2)
    • ►  July (1)
    • ►  June (1)
Awesome Inc. theme. Powered by Blogger.