tags:

views:

587

answers:

7

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?

+1  A: 

syntax enable
set background=dark for black xterms.
set autoindent when I'm going to develop.

Arkaitz Jimenez
+1  A: 

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

René Nyffenegger
good idea to put the .vimrc on a website
Yada
A: 

Lots of .vimrc ideas can be found here.

Chris R. Timmons
+1  A: 

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.

John Hyland
A: 

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>
alesplin
+3  A: 

There is never a need for a minimalistic configuration. This solves everything:

wget -O ~/.vimrc http://github.com/lucasoman/Conf/raw/master/.vimrc
Lucas Oman
Better to clone it, so if you make changes locally you can just commit them back up to github.
Brandon
Well, that assumes that git is installed or that I have permissions to install it. Cloning is preferable, but the above solution is universal.
Lucas Oman
+1  A: 

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
Yada
I had no idea about `nobackup`. Neat. `rm * ~` instead of `rm *~` is too easy to do...
Lucas Jones