How I paste now:Right-click/Copy or simply highlight.Right-click/Paste or Middle Click or CTRL+SHFT+VIndents appear at increasing intervals: 0, 2, 4, 6, +Question at hand:From prior research, I found that the quick and dirty solution is entering the following in my .vimrc file: set :paste. However, those who suggested that command said that set :paste affects other settings. (Off the top of my head, I forget.)I would like to know what option I can set that simply pastes without extra indentation. If that ends up being :paste, then I would like to know what exactly that command does.I only see one difference. When in Vim, -- INSERT -- becomes -- INSERT (paste) --
How can I copy/paste new text without auto-indentation at every new line?
vimrc;indentation;os clipboard
OK, here is a yank & put primerIn Vim, the primary commands for yanking (copying) and putting (pasting) are y and p.Yanking places the yanked text in a register. That register is the unnamed register, , by default but one can use other registers:ay     yank into register aby     yank into register b+y     yank into clipboard register[]Similarly, putting inserts text from a register. That register is the unnamed register by default but one can use other registers:ap     put from register a+p     put from clipboard register3p     put from the register 3[]Those commands are prefered to Right-click/Paste or Middle Click or CTRL+SHFT+V because the text is put into the buffer without any special treatment. With Right-click/Paste or Middle Click or CTRL+SHFT+V, the text is inserted in the buffer as if you typed it and is thus subjected to automatic indenting/formatting.If you can't use +p or *p  working over SSH without X forwarding or Vim built without clipboard support  the paste option disables automatic indenting and a bunch of other very useful options so that your typed text is not alrered.As noted in :help 'paste, the options has potentially very bad side effects so it is important to disable it right after you pasted your text::set paste(paste):set nopasteThat dance is obviously a pain in the ass so there is another option that lets you define a special shortcut for toggling paste:set pastetoggle=<F12>That slightly reduces the pain:<F12>(paste)<F12>But it is still a pain.If you can, it is recommended to install a proper Vim with clipboard support so you can use *p or +p (depending on how you copied your text) to paste text the right way.On Mac OS X: install MacVim,on Debian-based systems: install the vim-gnome or vim-gtk package,on CentOS: install the vim-enhanced package.Reference::help p:help y:help registers:help 'paste':help 'pastetoggle'