Default changes to Vim

Posted in dev-sys on February 15, 2014

Quick post for future reference.

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

edit /etc/vim/vimrc

uncomment

set background=dark 

add

set autoindent
set expandtab
set softtabstop=2
set shiftwidth=2

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

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

Comments (0)