-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
38 lines (31 loc) · 1.15 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
call pathogen#infect()
call pathogen#helptags()
let g:pathogen_disabled = ['gitgutter']
" Highlight search results for visibility
set hlsearch
" Hitting Return clears text highlighting from hlsearch
nnoremap <CR> :noh<CR><CR>
set number
syntax enable
set ts=2 sts=2 sw=2 expandtab
" Toggle option for pasting text from another application
set pastetoggle=<F2>
" Colorscheme config
set background=dark
let g:solarized_termtrans=1
let g:solarized_termcolors=256
let g:solarized_contrast="high"
let g:solarized_visibility="high"
colorscheme solarized
filetype plugin indent on
" Add haml syntax to hamlc
au BufRead,BufNewFile *.hamlc set ft=haml
" Remove trailing whitespace before saving
autocmd FileType c,cpp,java,php,python,ruby,coffee autocmd BufWritePre <buffer> :%s/\s\+$//e
" Syntastic config: linters
let g:syntastic_aggregate_errors = 1 " Show errors from multiple linters
let g:syntastic_always_populate_loc_list = 1 " auto-update list shown using :Errors
let g:syntastic_check_on_open = 1
let g:syntastic_ruby_checkers = ['rubylint', 'rubocop']
let g:syntastic_python_checkers = ['pep8', 'pep257', 'pylint']
let g:syntastic_coffee_checkers = ['coffeelint']