· 1 min read · Dev-Sys

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

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.

Earlier Vim tips: Vim: Enough tabs already and Vim auto indenting.