Mercurial > dotfiles.old
comparison vimrc @ 216:d216f4d5508e
Setup latex compiler for dispatch
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 09 Dec 2014 19:51:07 +0100 |
parents | ffe47a1b75f8 |
children | 9332fdb1ff4d |
comparison
equal
deleted
inserted
replaced
215:ffe47a1b75f8 | 216:d216f4d5508e |
---|---|
22 | 22 |
23 " Undo | 23 " Undo |
24 Plug 'sjl/gundo.vim', { 'on': 'GundoToggle' } | 24 Plug 'sjl/gundo.vim', { 'on': 'GundoToggle' } |
25 | 25 |
26 " Tmux | 26 " Tmux |
27 Plug 'benmills/vimux', { 'on': 'VimuxRunCommand' } | |
28 Plug 'christoomey/vim-tmux-navigator' | 27 Plug 'christoomey/vim-tmux-navigator' |
29 Plug 'tpope/vim-dispatch' | 28 Plug 'tpope/vim-dispatch' |
30 | 29 |
31 " Search and Complete | 30 " Search and Complete |
32 Plug 'Shougo/neocomplete' | 31 Plug 'Shougo/neocomplete' |
199 " Fix comments for matlab | 198 " Fix comments for matlab |
200 autocmd FileType matlab setlocal commentstring=\%\ %s | 199 autocmd FileType matlab setlocal commentstring=\%\ %s |
201 | 200 |
202 highlight SpellBad ctermbg=256 ctermfg=210 | 201 highlight SpellBad ctermbg=256 ctermfg=210 |
203 highlight SpellLocal ctermbg=240 ctermfg=010 | 202 highlight SpellLocal ctermbg=240 ctermfg=010 |
203 highlight SpellCap ctermbg=256 ctermfg=211 | |
204 | 204 |
205 " When editing a file, always jump to the last known cursor position. | 205 " When editing a file, always jump to the last known cursor position. |
206 " Don't do it for commit messages, when the position is invalid, or when | 206 " Don't do it for commit messages, when the position is invalid, or when |
207 " inside an event handler (happens when dropping a file on gvim). | 207 " inside an event handler (happens when dropping a file on gvim). |
208 autocmd BufReadPost * | 208 autocmd BufReadPost * |
360 | 360 |
361 " VHDL ctags | 361 " VHDL ctags |
362 let g:tlist_vhdl_settings = 'vhdl;d:package declarations;b:package bodies;e:entities;a:architecture specifications;t:type declarations;p:processes;f:functions;r:procedures' | 362 let g:tlist_vhdl_settings = 'vhdl;d:package declarations;b:package bodies;e:entities;a:architecture specifications;t:type declarations;p:processes;f:functions;r:procedures' |
363 " }}} | 363 " }}} |
364 " Latex {{{ | 364 " Latex {{{ |
365 " Compile using rubber | |
366 nnoremap <leader>m :w<CR>:VimProcBang rubber --pdf --warn all %<CR> | |
367 " Open pdf | 365 " Open pdf |
368 nnoremap <silent> <leader>v :silent !open %:r.pdf<CR><CR> | 366 nnoremap <leader>v :!open -a /Applications/TeX/TeXShop.app %:r.pdf<CR><CR> |
369 autocmd FileType tex set makeprg=rubber\ --pdf\ % | 367 " Set compiler to rubber |
368 autocmd FileType tex setlocal makeprg=rubber\ --pdf\ % | |
370 " }}} | 369 " }}} |
371 " Unite {{{ | 370 " Unite {{{ |
372 call unite#filters#matcher_default#use(['matcher_fuzzy']) | 371 call unite#filters#matcher_default#use(['matcher_fuzzy']) |
373 call unite#filters#sorter_default#use(['sorter_rank']) | 372 call unite#filters#sorter_default#use(['sorter_rank']) |
374 " call unite#set_profile('files', 'smartcase', 1) | 373 " call unite#set_profile('files', 'smartcase', 1) |
531 let g:vimwiki_list=[{'path':'$HOME/.vimwiki'}] | 530 let g:vimwiki_list=[{'path':'$HOME/.vimwiki'}] |
532 " }}} | 531 " }}} |
533 " Vim Sessions {{{ | 532 " Vim Sessions {{{ |
534 let g:session_autosave = 'no' | 533 let g:session_autosave = 'no' |
535 " }}} | 534 " }}} |
536 " Vimux {{{ | 535 " Dispatch {{{ |
537 let g:VimuxUseNearest = 1 | 536 nnoremap <leader>s :Make<CR> |
538 nnoremap <buffer> <silent><leader>s :w<CR> | |
539 autocmd FileType python nnoremap <buffer> <silent><leader>s :w<CR>:VimuxRunCommand('%run -i ' . expand('%'))<CR> | |
540 autocmd FileType ruby nnoremap <buffer> <silent><leader>s :w<CR>:VimuxRunCommand('rake spec')<CR> | |
541 autocmd FileType c nnoremap <buffer> <silent><leader>s :w<CR>:VimuxRunCommand('make')<CR> | |
542 " }}} | |
543 " Vim-tmux-navigator {{{ | |
544 " nnoremap <silent> <C-h> :TmuxNavigateLeft<CR> | |
545 " }}} | 537 " }}} |
546 | 538 |
547 " Load local vimrc | 539 " Load local vimrc |
548 if filereadable($HOME . "/.vimrc.local") | 540 if filereadable($HOME . "/.vimrc.local") |
549 source ~/.vimrc.local | 541 source ~/.vimrc.local |