xolox / vim-shell

Improved integration between Vim and its environment (fullscreen, open URL, background command execution)
http://peterodding.com/code/vim/shell/
169 stars 13 forks source link

File name expansion does not work with MakeWithShell #29

Closed howsiwei closed 9 years ago

howsiwei commented 9 years ago

I have the following line in my c.vim.

set makeprg=make\ %:r

So when I type make at vim command line when editting filename.c, it will run make filename. This does not with MakeWithShell though. I know I can change it to

let &l:makeprg = 'make '.expand('%:r')

but the first configuration is just more elegant.

xolox commented 9 years ago

To be honest I would rather remove MakeWithShell from the vim-shell plug-in than continue down the path of re-implementing Vim features to shoe horn something into Vim that was never meant to be :-). I'm sorry but I won't extend MakeWithShell further unless I can find a generic mechanism that doesn't require defining alternatives to dozens of Vim built-in commands and having to re-implement logic that is already available in Vim. I invested quite a bit of time in finding such a generic mechanism already (and the silly thing is I've hardly used Microsoft Windows in the past 6 years) so don't hold your breath :-(