-
Notifications
You must be signed in to change notification settings - Fork 2
/
.vimrc
66 lines (51 loc) · 1.49 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
" vim: set fenc=utf-8 tw=80 sw=2 sts=2 et foldmethod=marker :
" use pathogen
call pathogen#infect()
scriptencoding utf-8
colorscheme twilight
filetype plugin on
filetype indent on
syntax on
set number
" visally display tabs
set lcs=tab:>-
set list!
set tabstop=3
" swapfile
set directory=~/tmp,/tmp,.,/var/tmp " set paths for swapfile
autocmd BufRead,BufNewFile *.mako set ft=mako
autocmd BufRead,BufNewFile *.less set ft=less
autocmd BufRead,BufNewFile *.zcml :set ft=xml
autocmd BufRead,BufNewFile *.jinja :set ft=jinja
autocmd BufRead,BufNewFile *.jinja2 :set ft=jinja
autocmd BufRead,BufNewFile *.aug :set ft=augeas
autocmd FileType python,mako set omnifunc=pythoncomplete#Complete
autocmd FileType rst set spell
autocmd FileType xhtml,html set noexpandtab
autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab autoindent
" remap omnicompletion
inoremap <Nul> <C-x><C-o>
" hide .pcy files
let g:explHideFiles='^\.,.*\.pyc$'
" bind fuzzyfinder to Ctrl-o
map <C-O> :FufCoverageFile<CR>
" 265 colors in terminal
set t_Co=256
" nerdtree ignore pyc
let NERDTreeIgnore=['\.pyc$']
" ropevim
let ropevim_vim_completion=1
let ropevim_extended_complete=1
" syntastic
let g:syntastic_enable_signs=1
let g:syntastic_auto_jump=1
"let g:syntastic_auto_loc_list=1
" detectindent
:let g:detectindent_preferred_expandtab = 1
:let g:detectindent_preferred_indent = 4
:autocmd BufReadPost * :DetectIndent
" ropevim
let g:ropevim_vim_completion=1
let g:ropevim_extended_complete=1
" statusline
set laststatus=2