On Aug 06, 2018 um 15:47:18, Christian Brabandt wrote:
> 
> On Mo, 06 Aug 2018, Michael Wagner wrote:
> 
> > thanks for your answer, but it is not for my question. Sorry if it 
> > wasn't clear enough. 
> > I want to know how I start the command 'strfile' when I edit my sigfile. 
> > I have this not functional snippet in my .vimrc
> > 
> > autocmd BufWritePost $HOME/sigs/* exe "!/usr/bin/strfile"
> > 
> > and the errormessage is
> > 
> > :!/usr/bin/strfile
> > No input file name
> > strfile [-iorsx] [-c char] sourcefile [datafile]
> > 
> > shell returned 1
> > 
> > So how I get the filename commited to the command?
> 
> I guess you want something like:
> 
> autocmd BufWritePost $HOME/sigs/* exe ":!/usr/bin/strfile" expand("<amatch>")
> 
> 
Hello Christian,

that's it, thanks for your answer

Michael

-- 
It's not the principle of the thing, it's the money

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: PGP signature

Reply via email to