diff --git a/plugin/slimux.vim b/plugin/slimux.vim index 8f785f6..91c5fb0 100644 --- a/plugin/slimux.vim +++ b/plugin/slimux.vim @@ -3,7 +3,7 @@ " License: MIT. See LICENSE if !exists('g:slimux_tmux_path') - let g:slimux_tmux_path = substitute(system('command -v tmux'), '\n\+$', '', '') + let g:slimux_tmux_path = substitute(system('whereis tmux'), '^tmux: \(\S\+\) .*$', '\1', '') endif if $PREFERRED_TMUX != '' let g:tmux_preferred_cmd = ''