Darren Beale Web developer & early adopter

Default changes to Vim

D

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 (2) spaces and you can actually see the text.

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

By bealers
Darren Beale Web developer & early adopter