2011-12-23 18:50:18 +00:00
|
|
|
filetype plugin on
|
2011-12-23 20:41:47 +00:00
|
|
|
filetype plugin indent on
|
2014-01-17 22:53:33 +00:00
|
|
|
execute pathogen#infect()
|
2014-04-18 18:58:21 +00:00
|
|
|
syntax enable
|
|
|
|
set background=dark
|
|
|
|
colorscheme solarized
|
|
|
|
let g:solarized_termcolors=256
|
2011-12-23 20:41:47 +00:00
|
|
|
|
|
|
|
set bs=2
|
|
|
|
set nocompatible
|
|
|
|
set ts=2
|
|
|
|
set pastetoggle=<F2>
|
|
|
|
set number
|
|
|
|
set expandtab
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set softtabstop=4
|
2012-06-21 20:35:57 +00:00
|
|
|
set textwidth=79
|
2011-12-23 20:41:47 +00:00
|
|
|
set autoindent
|
|
|
|
set mouse=a
|
2012-01-21 03:45:01 +00:00
|
|
|
set hls is
|
2012-05-29 00:34:59 +00:00
|
|
|
set encoding=utf-8
|
2012-07-08 17:20:44 +00:00
|
|
|
|
|
|
|
" Only do this part when compiled with support for autocommands
|
|
|
|
if has("autocmd")
|
|
|
|
" Enable file type detection
|
|
|
|
filetype on
|
|
|
|
|
|
|
|
" Syntax of these languages is fussy over tabs Vs spaces
|
|
|
|
autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab
|
|
|
|
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
|
|
|
|
|
|
|
" Customisations based on house-style (arbitrary)
|
|
|
|
autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab
|
|
|
|
autocmd FileType css setlocal ts=2 sts=2 sw=2 expandtab
|
|
|
|
autocmd FileType javascript setlocal ts=4 sts=4 sw=4 noexpandtab
|
2012-07-08 17:24:37 +00:00
|
|
|
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
|
2012-07-08 17:20:44 +00:00
|
|
|
|
|
|
|
" Treat .rss files as XML
|
|
|
|
autocmd BufNewFile,BufRead *.rss setfiletype xml
|
|
|
|
endif
|
|
|
|
|