Friday, August 26, 2011

Re: display faster output of external app

>       let g:output=substitute(system(s:cmd),'\n','',"g")
system(s:cmd) produces something like "useful message\n" like `system('echo
"useful message"')' does, am I right? You need just system(s:cmd)[:-2] then.


You're right

 
Your code is a bit strange (I don't get why you need `output' to be global
and constructed `cmd' to be script-local), but nothing more can be said at this
point.

global to debug and have possibility after the run of vimscript to do
echo g:myglobal 

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