preservim / vimux

easily interact with tmux from vim
MIT License
2.21k stars 161 forks source link

You should add more things to the doc. #175

Closed l13rb4git closed 4 years ago

l13rb4git commented 4 years ago

I've been search for a way to run commands with more than one expand() using VimuxRunCommand. Fortunately I find out that the little dot is the separator. Ex: :call VimuxRunCommand("clear; gcc " . expand("%") . " -o " . expand("%:r") . " ; ./" . expand("%:r"))

Tanks you for the plugin, it's really useful!

mvcouwen commented 4 years ago

This is not really a feature of vimux, but rather of vim itself. Dots are used to concatenate strings in any vimscript. See :help expression-syntax. Is this not clear from the example under :help VimuxRunCommand?