Tuesday, July 31, 2012

Re: vim: how to press after execution of external cmd

On 7/31/2012 10:52 PM, Ben Schmidt wrote:
>> thanks, but...
>> I tried following, still I need to press 4 enter...
>>
>> function! s:Asciidoc2All()
>> let a:destdir = "/Dropbox/temp-transfer/"
>> let a:filebasename = "%:t:r"
>> let tohtml = "silent w|!asciidoc -a toc -a toclevels=6 -o" . a:destdir
>> . "/" .
>> a:filebasename . ".html \"%\""
>> let tofodt = "silent w|!asciidoc -b odt -o" . a:destdir . "/" .
>> a:filebasename .
>> ".fodt \"%\""
>> let tofodp = "silent w|!asciidoc -b odp -o" . a:destdir . "/" .
>> a:filebasename .
>> ".fodp \"%\""
>> let topdf = "silent w|!a2x -f pdf --verbose --no-xmllint -D" .
>> a:destdir . "/" . "
>> \"%\""
>> execute tohtml
>> execute tofodt
>> execute tofodp
>> execute topdf
>> endfunction
>
> :silent will only apply to :w where you have placed it. You probably
> want it to apply to the shell command by putting it between the | and
> the !, or to the whole lot by putting it before :execute.
>
> Ben.
>
that works, again..
thanks!

b.t.w, just curious is there anything about vim that you don't know of? :D

--
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

No comments: