Friday, June 11, 2010

VI/VIM Avoid tabs when making a copy/paste

SkyHi @ Friday, June 11, 2010

Issue




By default, when you make a copy and paste in vi or vim (through an
remote SSH session), it adds incremented tabs at each line.

Solution




To solve this problem,simply type: set paste in the window or add
the set paste in /etc/vim/vimrc or in the ~/.vimrc file