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
1 comment:
sam
said...
My version of VI must be old as I don't have this option. Turning off autoindent worked for me:
1 comment:
My version of VI must be old as I don't have this option. Turning off autoindent worked for me:
:set noautoindent
Post a Comment