Default changes to Vim

Quick post for future reference.

Just installed Debian or Ubuntu, need Vim back to what you’re used to?

edit /etc/vim/vimrc


set background=dark Code language: JavaScript (javascript)


set autoindent
set expandtab
set softtabstop=2
set shiftwidth=2Code language: JavaScript (javascript)

Tabs are now always two spaces and you can actually see the text.

Don’t forget to add export EDITOR=vim to .bashrc either.


Leave a Reply

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