-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
93 lines (73 loc) · 1.65 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
" vundle setup
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
" plugins
Bundle 'bling/vim-airline'
Bundle 'bling/vim-bufferline'
Bundle 'daylerees/colour-schemes'
Bundle 'gmarik/Vundle.vim'
Bundle 'klen/python-mode'
Bundle 'scrooloose/nerdtree.git'
Bundle 'sickill/vim-monokai.git'
Bundle 'taglist.vim'
Bundle 'vim-scripts/xoria256.vim'
Bundle 'vim-scripts/mako.vim'
call vundle#end()
filetype plugin indent on
" find
set ic
set hls
set is
" tabs
set ts=4
set expandtab
set shiftwidth=4
set softtabstop=4
set showcmd
set linebreak
set dy=lastline
set nu
set nopaste
" colors
if $TERM =~ "256"
set t_Co=256
colorscheme xoria256
else
colorscheme desert
endif
syntax enable
set autoindent
" folding
set nofoldenable
set foldmethod=syntax
set foldlevelstart=1
set cursorline
set guioptions=c
" swp
set backupdir=~/.vim/backup/
set directory=~/.vim/backup/
" buffers
map <C-Tab> :bnext<cr>
map <C-S-Tab> :bprevious<cr>
imap <C-Tab> :bnext<cr>
imap <C-S-Tab> :bprevious<cr>
" colorcolumn
highlight OverLength ctermbg=red ctermfg=white guibg=red
au! FileType python,c,rst match OverLength /\%79v.\+/
" plugins setup
" pydoc
let g:pydoc_cmd = '/usr/bin/pydoc'
let g:pydoc_open_cmd = 'vsplit'
let python_highlight_all = 1
let g:pymode_trim_whitespaces = 1
let g:pymode_options_colorcolumn = 0
let g:pymode_virtualenv_path = './.tox/py27'
let g:pymode_lint_checkers = ['pyflakes', 'pylint', 'pep8', 'mccabe', 'pep257']
let g:pymode_lint_ignore = "C0111,D100,D101,D102"
let g:pymode_rope_lookup_project = 1
let g:pymode_rope_regenerate_on_write = 0
" vim airline
let g:airline_powerline_fonts = 1
let vimpager_passthrough = 1