Created
March 9, 2010 10:00
-
-
Save henningjensen/326448 to your computer and use it in GitHub Desktop.
My .vimrc file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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