@@ -6,9 +6,9 @@ set rtp+=~/.vim/bundle/Vundle.vim
6
6
7
7
call vundle#begin ()
8
8
Plugin ' VundleVim/Vundle.vim'
9
+ Plugin ' d11wtq/ctrlp_bdelete.vim'
9
10
Plugin ' easymotion/vim-easymotion'
10
11
Plugin ' embear/vim-localvimrc'
11
- Plugin ' honza/vim-snippets'
12
12
Plugin ' kien/ctrlp.vim'
13
13
Plugin ' majutsushi/tagbar'
14
14
Plugin ' pbrisbin/vim-mkdir'
@@ -41,18 +41,19 @@ Plugin 'tpope/vim-rails'
41
41
Plugin ' vim-ruby/vim-ruby'
42
42
43
43
" Python
44
- " Plugin 'glench/vim-jinja2-syntax'
45
- " Plugin 'jmcomets/vim-pony'
46
- Plugin ' fisadev/vim-isort'
44
+ " Plugin 'fisadev/vim-isort'
47
45
Plugin ' hynek/vim-python-pep8-indent'
46
+ " Plugin 'glench/vim-jinja2-syntax'
48
47
49
48
" Web
50
- " Plugin 'mattn/emmet-vim'
51
49
Plugin ' ap/vim-css-color'
50
+ Plugin ' kchmck/vim-coffee-script'
51
+ Plugin ' mxw/vim-jsx'
52
52
Plugin ' pangloss/vim-javascript'
53
53
54
54
" Deprecated
55
55
" Plugin 'jiangmiao/auto-pairs'
56
+ " Plugin 'honza/vim-snippets'
56
57
call vundle#end ()
57
58
filetype plugin indent on
58
59
syntax on
@@ -89,6 +90,8 @@ set wildignore+=*.bmp,*.gif,*.ico,*.jpg,*.png
89
90
set wildignore += __pycache__
90
91
set wildignore += * .sqlite3
91
92
set wildignore += tmp,bin
93
+ set wildignore += tags
94
+ set wildignore += node_modules
92
95
93
96
set guioptions -= T
94
97
set guioptions -= L
@@ -114,9 +117,9 @@ autocmd FileType python setlocal filetype=python.django
114
117
autocmd FileType ruby setlocal expandtab softtabstop = 2 shiftwidth = 2 shiftround
115
118
\ autoindent
116
119
117
- " html, css, javascript, htmldjango, eruby
118
- autocmd FileType html,css,javascript,htmldjango,eruby setlocal expandtab
119
- \ softtabstop = 2 shiftwidth = 2 shiftround autoindent
120
+ " web
121
+ autocmd FileType html,css,sass,scss, javascript,coffee, htmldjango,eruby
122
+ \ setlocal expandtab softtabstop = 2 shiftwidth = 2 shiftround autoindent
120
123
121
124
" gyp, gypi
122
125
au ! BufRead ,BufNewFile * .gyp,* .gypi setlocal expandtab softtabstop = 2
@@ -157,8 +160,8 @@ nmap <silent> <leader>d <Plug>DashSearch
157
160
158
161
" NERDTree
159
162
let NERDTreeRespectWildIgnore= 1
160
- map <Leader > n :NERDTreeToggle<CR>
161
- map <Leader > j :NERDTreeFind<CR>
163
+ map <leader > n :NERDTreeToggle<CR>
164
+ map <leader > j :NERDTreeFind<CR>
162
165
autocmd BufEnter * if (winnr (" $" ) == 1 && exists (" b:NERDTree" )
163
166
\ && b: NERDTree .isTabTree ()) | q | endif
164
167
@@ -167,17 +170,19 @@ nmap <F8> :TagbarOpen fj<CR>
167
170
nmap <F9> :TagbarToggle<CR>
168
171
169
172
" Gundo
170
- let g: gundo_right = 1
173
+ let g: gundo_prefer_python3 = 1
171
174
nnoremap <F5> :GundoToggle<CR>
172
175
173
176
" solarized
174
177
call togglebg#map (' <F6>' )
175
178
176
179
" UltiSnips
177
180
let g: UltiSnipsExpandTrigger= ' <C-J>'
178
- let g: UltiSnipsListSnippets= ' <C-K>'
179
181
let g: UltiSnipsJumpForwardTrigger= ' <C-J>'
180
- let g: UltiSnipsJumpBackwardTrigger= ' <C-Z>'
182
+ let g: UltiSnipsJumpBackwardTrigger= ' <C-K>'
183
+ let g: UltiSnipsListSnippets= ' <C-L>'
184
+ let g: UltiSnipsEditSplit= ' horizontal'
185
+ let g: UltiSnipsSnippetsDir= $HOME .' /.vim/UltiSnips'
181
186
182
187
" syntastic
183
188
set statusline += % #warningmsg #
@@ -189,8 +194,12 @@ let g:syntastic_check_on_open=1
189
194
let g: syntastic_check_on_wq= 0
190
195
let g: syntastic_python_checkers= [' flake8' ]
191
196
let g: syntastic_python_flake8_args= ' --ignore=E501'
192
- let g: syntastic_eruby_ruby_quiet_messages =
193
- \ {' regex' : ' possibly useless use of a variable in void context' }
197
+ let g: syntastic_eruby_ruby_quiet_messages = {
198
+ \ ' regex' : ' possibly useless use of a variable in void context' ,
199
+ \}
200
+ let g: syntastic_scss_sass_quiet_messages = {
201
+ \ ' regex' : ' File to import not found or unreadable' ,
202
+ \}
194
203
195
204
" YouCompleteMe
196
205
nnoremap <leader> g :YcmCompleter GoTo<CR>
@@ -203,21 +212,11 @@ let g:ycm_filetype_specific_completion_to_disable = {
203
212
\ ' gitcommit' : 1 ,
204
213
\ ' objcpp' : 1 ,
205
214
\ ' ruby' : 1 ,
215
+ \ ' railslog' : 1 ,
206
216
\}
207
217
208
- " Surround
209
- " django
210
- " let g:surround_{char2nr("v")}="{{ \r }}"
211
- " let g:surround_{char2nr("{")}="{{ \r }}"
212
- " let g:surround_{char2nr("%")}="{% \r %}"
213
- " let g:surround_{char2nr("b")}="{% block \1block name: \1 %}\r{% endblock \1\1 %}"
214
- " let g:surround_{char2nr("i")}="{% if \1condition: \1 %}\r{% endif %}"
215
- " let g:surround_{char2nr("w")}="{% with \1with: \1 %}\r{% endwith %}"
216
- " let g:surround_{char2nr("f")}="{% for \1for loop: \1 %}\r{% endfor %}"
217
- " let g:surround_{char2nr("c")}="{% comment %}\r{% endcomment %}"
218
-
219
218
" Clang-Format
220
- map <Leader > c :ClangFormat<CR>
219
+ map <leader > c :ClangFormat<CR>
221
220
let g: clang_format #style_options = {
222
221
\ " AccessModifierOffset" : -4 ,
223
222
\ " BasedOnStyle" : " Chromium" ,
@@ -230,3 +229,15 @@ let g:clang_format#style_options = {
230
229
" Ctrlp
231
230
let g: ctrlp_working_path_mode= 0
232
231
let g: ctrlp_max_files= 0
232
+ let g: ctrlp_extensions = [' quickfix' , ' bookmarkdir' ]
233
+ let g: ctrlp_custom_ignore = ' \v[\/]public/packs'
234
+ call ctrlp_bdelete#init ()
235
+
236
+ " Rails
237
+ let g: rails_ctags_arguments = [' --field=+l' , ' --languages=Ruby' , ' --exclude=.git' , " --exclude='*~'" , " --exclude='*.swp'" ]
238
+
239
+ " Commands
240
+ command ! -nargs =+ -complete =file MCgrep :execute " grep -rn --exclude-dir='**/chromium/out' --exclude=tags --exclude='*~' --exclude='*.swp' <args>"
241
+ command ! -nargs =+ -complete =file MCgrepadd :execute " grepadd -rn --exclude-dir='**/chromium/out' --exclude=tags --exclude='*~' --exclude='*.swp' <args>"
242
+ command ! -nargs =+ -complete =file MMgrep :execute " grep -rn --exclude-dir='**/chromium/out' --exclude=tags --exclude='*~' --exclude='*.swp' --exclude-dir='**/chromium' <args>"
243
+ command ! -nargs =+ -complete =file MMgrepadd :execute " grepadd -rn --exclude-dir='**/chromium/out' --exclude=tags --exclude='*~' --exclude='*.swp' --exclude-dir='**/chromium' <args>"
0 commit comments