2011-04-04 20 views

cevap

7

tuşu döndürmeye çalışıyor ve herhangi bir değer tek tırnak kaçış ve sonra VIM::DoCommand("return '$data'") kullanmaktır. Örneğin

:

function PhoneHome() 
    perl << EOF 
     use IO::Socket; 
     my $mothership = IO::Socket->INET->connect() 
     my $data = <$mothership>; 
     $data =~ s|'|''|g; # escape ' 
     VIM::DoCommand("return '$data'") 
    EOF 
endfunction 

Ayrıca :help perl ve :help perl-DoCommand görüyoruz. Ancak çoğu zaman bu gerçekten belgelenmiş değil.

İlgili konular