# HG changeset patch # User zegervdv # Date 1414946304 -3600 # Node ID 9ee1bb5d83601d7306547b4b59ae8ade66bd8e18 # Parent 27f78c20b4864ad9de206302877666d180c20194 use filetype specific commands for vimux diff -r 27f78c20b486 -r 9ee1bb5d8360 vimrc --- a/vimrc Sun Nov 02 17:29:43 2014 +0100 +++ b/vimrc Sun Nov 02 17:38:24 2014 +0100 @@ -611,8 +611,9 @@ " }}} " Vimux {{{ let g:VimuxUseNearest = 1 -nnoremap s :w:call VimuxRunCommand('%run -i ' . expand('%')) -nnoremap r :w:call VimuxRunCommand('rake spec') +autocmd FileType python nnoremap s :w:call VimuxRunCommand('%run -i ' . expand('%')) +autocmd FileType ruby nnoremap s :w:call VimuxRunCommand('rake spec') +autocmd FileType c nnoremap s :w:call VimuxRunCommand('make') " }}} " Tmuxline {{{ let g:tmuxline_powerline_separators=0