Skip to content

Instantly share code, notes, and snippets.

@henningjensen
Created March 9, 2010 10:00
Show Gist options
  • Save henningjensen/326448 to your computer and use it in GitHub Desktop.
Save henningjensen/326448 to your computer and use it in GitHub Desktop.
My .vimrc file
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
syntax on
set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal g'\"" | endif
endif
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
" My preferences
set tabstop=2
set shiftwidth=2
set expandtab
set t_Co=256
filetype on
filetype indent on
filetype plugin on
set autoindent
set enc=utf-8
set number
set pastetoggle=<F9>
set ruler
set shiftround
set showmatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment