Friday, August 26, 2011

display faster output of external app

Hi,

I am calling an external app from vim like that :

1/ calling the application
let g:output=system(s:cmd)

2/ deleting old returned value and updating with new one
call s:OPC.AddValueAtEndOfFile(g:output)

" Write value at end of line {{{1
fun! s:OPC.AddValueAtEndOfFile(value)
exe "norm ^f d$"
exe "norm ^".s:maxlinelength."l"
exe "norm a ".a:value
endfunction
==============================================

In fact this algo is called at each line to process in my entry file.
I have done another method that do this task on several lines 10.

Is there another way to make the call of external app or the update
method faster ?
Thank you


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

Post a Comment