I have this problem (trivially simplified a real case):
let a="a\nb\nc"
When echo'ing it, it displays lines:
:echo a
a
b
c
Now I need to call system() and have the contents of 'a'
as the file, without actually writing the 'a' into a temp file,
something like this:
execute "system(". editor . " " . file .")"
where 'editor' is a variable containing the editor name,
could be
let editor=gvim
and 'file' is *the something* containing the lines from
the variable 'a'.
Can that be done or do I have to go via a temp file?
thanks
---Zdenek