comparison vimrc @ 169:9ee1bb5d8360

use filetype specific commands for vimux
author zegervdv <zegervdv@me.com>
date Sun, 02 Nov 2014 17:38:24 +0100
parents 27f78c20b486
children 1e77456c253b
comparison
equal deleted inserted replaced
168:27f78c20b486 169:9ee1bb5d8360
609 let g:jedi#auto_vim_configuration=0 609 let g:jedi#auto_vim_configuration=0
610 let g:jedi#completions_enabled = 0 610 let g:jedi#completions_enabled = 0
611 " }}} 611 " }}}
612 " Vimux {{{ 612 " Vimux {{{
613 let g:VimuxUseNearest = 1 613 let g:VimuxUseNearest = 1
614 nnoremap <silent><leader>s :w<CR>:call VimuxRunCommand('%run -i ' . expand('%'))<CR> 614 autocmd FileType python nnoremap <buffer> <silent><leader>s :w<CR>:call VimuxRunCommand('%run -i ' . expand('%'))<CR>
615 nnoremap <silent><leader>r :w<CR>:call VimuxRunCommand('rake spec')<CR> 615 autocmd FileType ruby nnoremap <buffer> <silent><leader>s :w<CR>:call VimuxRunCommand('rake spec')<CR>
616 autocmd FileType c nnoremap <buffer> <silent><leader>s :w<CR>:call VimuxRunCommand('make')<CR>
616 " }}} 617 " }}}
617 " Tmuxline {{{ 618 " Tmuxline {{{
618 let g:tmuxline_powerline_separators=0 619 let g:tmuxline_powerline_separators=0
619 " }}} 620 " }}}
620 621