Hello,
I'm trying to write my first vim-plugin, but I got stucked.
I managed to execute an external command, which gives me back a list of
filenames.
One filename per line.
For each of the filenames I want to execute another command.
I tried it with code:
let line=getline(.)
while
On 6/1/06, Johannes Schwarz [EMAIL PROTECTED] wrote:
Hello,
I'm trying to write my first vim-plugin, but I got stucked.
I managed to execute an external command, which gives me back a list of
filenames.
You need to say exactly how you executed the command, since that will
define how the
On 6/1/06, Benji Fisher [EMAIL PROTECTED] wrote:
...
let line=getline(.)
while (strlen(line)!=0)
do sth. here -- construct the external command and so on
j
let line=getline(.)
endwhile
Remember that a vim script (including a plugin) is a list of
commands in Command-Line (Ex)
In the meantime I found a solution myself:
let s:lnr=line(.)
let s:image=getline(s:lnr)
while (strlen(s:image) != 0)
let s:lnr=s:lnr+1
let s:image=getline(s:lnr)
endwhile
I'm not that familiar with the global commands yet,