comparison vimrc @ 190:35664e63555d

Small fixes to vimrc
author zegervdv <zegervdv@me.com>
date Sun, 09 Nov 2014 10:54:46 +0100
parents 925861e874ec
children 4a74a83e6e36
comparison
equal deleted inserted replaced
189:925861e874ec 190:35664e63555d
177 " Enable spelling only for latex and text 177 " Enable spelling only for latex and text
178 au BufNewFile,BufRead,BufEnter *.tex setlocal spell spelllang=en_gb 178 au BufNewFile,BufRead,BufEnter *.tex setlocal spell spelllang=en_gb
179 au BufNewFile,BufRead,BufEnter *.tex setlocal textwidth=0 179 au BufNewFile,BufRead,BufEnter *.tex setlocal textwidth=0
180 au BufNewFile,BufRead,BufEnter *.txt setlocal spell spelllang=en_gb 180 au BufNewFile,BufRead,BufEnter *.txt setlocal spell spelllang=en_gb
181 au BufNewFile,BufRead,BufEnter *.txt setlocal textwidth=0 181 au BufNewFile,BufRead,BufEnter *.txt setlocal textwidth=0
182 au FileType gitcommit setlocal spell spelllang=en_gb
182 183
183 autocmd BufRead *_spec.rb set filetype=rspec 184 autocmd BufRead *_spec.rb set filetype=rspec
184 185
185 highlight SpellBad ctermbg=256 ctermfg=210 186 highlight SpellBad ctermbg=256 ctermfg=210
186 highlight SpellLocal ctermbg=240 ctermfg=010 187 highlight SpellLocal ctermbg=240 ctermfg=010
300 return a:cmd . ":set smartindent\<CR>gv" 301 return a:cmd . ":set smartindent\<CR>gv"
301 else 302 else
302 return a:cmd . ":set smartindent\<CR>" 303 return a:cmd . ":set smartindent\<CR>"
303 endif 304 endif
304 endfunction 305 endfunction
305
306 let g:indent_guides_auto_colors = 0
307 let g:indent_guides_guide_size = 1
308 highlight IndentGuidesEven guibg=background
309 highlight IndentGuidesOdd guibg='#282a2e'
310 306
311 au FileType c setl foldmethod=syntax 307 au FileType c setl foldmethod=syntax
312 308
313 au VimResized * exe "normal! \<c-w>=" 309 au VimResized * exe "normal! \<c-w>="
314 310
517 vmap <Leader>a- :Tabularize /-<CR> 513 vmap <Leader>a- :Tabularize /-<CR>
518 " }}} 514 " }}}
519 " Tagbar {{{ 515 " Tagbar {{{
520 nmap <F8> :TagbarToggle<CR> 516 nmap <F8> :TagbarToggle<CR>
521 " }}} 517 " }}}
518 " Syntastic {{{
519 let g:syntastic_check_on_open=1
520 " }}}
522 " Gundo tree {{{ 521 " Gundo tree {{{
523 nnoremap <leader>u :GundoToggle<CR> 522 nnoremap <leader>u :GundoToggle<CR>
524 " }}} 523 " }}}
525 " Smalls {{{ 524 " Smalls {{{
526 nmap s <Plug>(smalls) 525 nmap s <Plug>(smalls)