forked from stereohorse/dev-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
199 lines (136 loc) · 3.36 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
" ----------------
" configure Vundle
" ----------------
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" syntax
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdcommenter'
Plugin 'godlygeek/tabular'
Plugin 'tpope/vim-surround'
" asciidoc
Plugin 'asciidoc/vim-asciidoc'
" markdown
Plugin 'suan/vim-instant-markdown'
" clojure
Plugin 'tpope/vim-fireplace'
Plugin 'tpope/vim-salve'
Plugin 'tpope/vim-dispatch'
Plugin 'guns/vim-clojure-static'
Plugin 'kien/rainbow_parentheses.vim'
Bundle 'venantius/vim-cljfmt'
" python
Plugin 'vim-scripts/indentpython.vim'
Plugin 'nvie/vim-flake8'
Plugin 'klen/python-mode'
" vcs
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
" search
Plugin 'mileszs/ack.vim'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'easymotion/vim-easymotion'
Plugin 'majutsushi/tagbar'
Plugin 'ervandew/supertab'
" files tree
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
" colors
Plugin 'flazz/vim-colorschemes'
Plugin 'w0ng/vim-hybrid'
" status line
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" general
Plugin 'tmux-plugins/vim-tmux-focus-events'
Plugin 'tpope/vim-sensible'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'Valloric/YouCompleteMe'
Plugin 'xolox/vim-notes'
Plugin 'xolox/vim-misc'
" l&f
Bundle 'edkolev/promptline.vim'
Bundle 'edkolev/tmuxline.vim'
" vundle
Plugin 'VundleVim/Vundle.vim'
call vundle#end()
filetype plugin indent on
runtime! plugin/sensible.vim
" ---
" l&f
" ---
set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab
set background=dark
let g:hybrid_custom_term_colors = 1
let g:hybrid_reduced_contrast = 1
colorscheme hybrid
set nofoldenable
set hidden
" line numbers
set relativenumber
filetype plugin indent on
" buffers
:nnoremap <Tab> :bnext<CR>
:nnoremap <S-Tab> :bprevious<CR>
" hardmode!
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" airline
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tmuxline#enabled = 0
let g:airline_theme='jellybeans'
" clipboard
set clipboard=unnamed
" ---------------
" silver_searcher
" ---------------
let g:ackprg = 'ag --nogroup --nocolor --column'
" ------
" syntax
" ------
syntax off
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" -------
" clojure
" -------
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
" ------
" python
" ------
" venv
py << EOF
import os
import sys
if 'VIRTUAL_ENV' in os.environ:
project_base_dir = os.environ['VIRTUAL_ENV']
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
EOF
let python_highlight_all=1
" ----------
" promptline
" ----------
let g:promptline_preset = {
\'b': [ '$(echo ${PWD##*/})' ],
\'x': [ promptline#slices#python_virtualenv() ],
\'y': [ promptline#slices#git_status() ],
\'z': [ promptline#slices#vcs_branch() ],
\'warn': [ promptline#slices#last_exit_code() ]}
" --------------------
" per-project settings
" --------------------
set exrc
set secure