Vim: Enough tabs already


You are connected to a Linux webserver via a Windows terminal client such as PuTTy. You copy some text to paste into a Vim document open on the remote machine and you get tab hell:

Here’s an example of something I pasted in tonight:

DocumentRoot /home/bealers/www
ErrorLog /var/log/apache/
CustomLog /var/log/apache/ common

Options Indexes


To fix this globally you can edit, as root, /etc/vim/vimrc (or similar) so that this line is commented out, or add it if not there:
[code]set autoindent[/code]

else edit your vimrc file ~/.vimrc



Leave a Reply

Your email address will not be published. Required fields are marked *