David Fishburn indicated that:

  > [has written many plugins in VimL; wants to write on in perl;
  > looking for perl/vim plugin examples]

  The best tip for getting started with perl/vim is in the
  "Additional Notes" section dated October 29, 2001 23:02 for a 
  tip by Benoit Cerrin: http://www.vim.org/tips/tip.php?tip_id=140 

  For more complex examples of using perl within vim, see:

      http://www.vim.org/scripts/script.php?script_id=1082
      http://www.vim.org/scripts/script.php?script_id=1052
      http://www.vim.org/scripts/script.php?script_id=906

  Another thing that might help:  
  
     1) Put the following toward the top of you perl file 
            BEGIN {(*STDERR = *STDOUT) || die;}
     2) End the perl file with the line
            __END__
     3) In $vim/ftplugin/perl.vim, use a mapping such as:

            nmap <buffer> <F5>  :w<esc>mwG:r!perl %:p<CR>`.
     
     The just hit <F5> and you will see the results of the perl
     processing.  You can go back to where you were using `w.
  
  --Suresh

Reply via email to