Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (37 sloc) 1.04 KB
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" VIM Configuration File
set nocompatible
set encoding=utf8
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" Basic Options
set autoindent
set background=dark
set formatoptions=qrn
set noexpandtab
set wrap
set number
set ruler
set colorcolumn=80
set scrolloff=2
set title
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" Options that need a bit more logic
auto BufRead * let &titlestring=expand("%:p")
if exists("$tabstop")
let &tabstop=$tabstop
endif
if exists("$textwidth")
let &textwidth=$textwidth
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" Backup
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" Syntax
filetype plugin on
syntax on
au BufRead,BufNewFile *.md set filetype=markdown
au BufRead,BufNewFile *.vala,*.vapi set filetype=vala
au BufRead,BufNewFile *.go set filetype=go