preservim / vimux

easily interact with tmux from vim
MIT License
2.19k stars 159 forks source link

cannot run vimux with vim variable #168

Closed Syn3iotiC closed 6 years ago

Syn3iotiC commented 6 years ago

I want to map this key to vimux nmap <leader>q :call VimuxRunCommand("api/rake spec SPEC=spec/requests/%:t")<cr>

%t in vim mean current filename.

But it doesn't work becuase vimux doesn't know how to interpret %:t as hello_spec.rb.

EDIT: Make it work by using this instead nmap <leader>q :call VimuxRunCommand("api/rake spec SPEC=spec/requests/" . expand("%:t"))<cr> Any suggestions?