There are .vimrc related questions found here and here.
This question wants to deal with a minimalistic .vimrc file.
If you are on a new machine with no .vimrc file what are some 'must turn on' commands you use before doing any typing?
syntax enable
set background=dark
for black xterms.
set autoindent
when I'm going to develop.
Since I am on new machines a lot, I have put my minimalistic .vimrc on my homepage here. So I don't have to carry it around on an USB stick.
Don't know, if there's anything for you in it or not.
Rene
This deviates a bit from the letter of the question, but is hopefully within the spirit. The very first thing I do on a new machine is set -o vi
to get vi-style key bindings on the commandline.
My vimrc lives on my dropbox folder. But it's not minimalistic.
If I'm doing something really simple (not worth grabbing my real vimrc) I'll do the following:
:set nocompatible
:set number
:set showmatch
:map! <F3> <Esc>
There is never a need for a minimalistic configuration. This solves everything:
wget -O ~/.vimrc http://github.com/lucasoman/Conf/raw/master/.vimrc
Here's my minimal settings with comments:
set backspace=2 " backspace in insert mode works like normal editor
syntax on " syntax highlighting
filetype indent on " activates indenting for files
set autoindent " auto indenting
set number " line numbers
colorscheme desert " colorscheme desert
set nobackup " get rid of anoying ~file