-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
57 lines (47 loc) · 1.38 KB
/
Copy pathvimrc
File metadata and controls
57 lines (47 loc) · 1.38 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
call pathogen#infect()
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
set number
set tabstop=2
set shiftwidth=2
set expandtab
syntax on
filetype plugin indent on
au BufRead,BufNewFile *.hamlc set ft=haml
"Syntastic"
let g:syntastic_python_checkers = ['pylint']
let g:syntastic_ruby_checkers = ['rubylint', 'rubocop']
let g:syntastic_aggregate_errors = 1
"Highlight Trailing Whitespace"
match ErrorMsg '\s\+$'
"Remove trailing whitespace"
nnoremap <Leader>rtw :%s/\s\+$//e<CR>
"Removes trailing spaces"
function! TrimWhiteSpace()
%s/\s\+$//e
endfunction
nnoremap <silent> <Leader>rts :call TrimWhiteSpace()<CR>
autocmd FileWritePre * :call TrimWhiteSpace()
autocmd FileAppendPre * :call TrimWhiteSpace()
autocmd FilterWritePre * :call TrimWhiteSpace()
autocmd BufWritePre * :call TrimWhiteSpace()
"Ser Solarized light as colorscheme"
syntax enable
let g:solarized_termtrans = 1
set background=light
colorscheme solarized
"Yank text to the OS X clipboard"
noremap <Leader>y "*y
noremap <Leader>yy "*Y
"Preserve indentation while pasting text from the OS X clipboard"
noremap <Leader>p :set paste<CR>:put *<CR>:set nopaste<CR>
"Airline"
let g:airline_powerline_fonts = 1
set laststatus=2
set guifont=Inconsolata\ for\ Powerline:h15
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8