|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
Softpanorama Search
|
This plugin causes write attempts to fail if the contents of the buffer produce an error when run through "perl -c"
The plugin uses can use autocommands for the BufWriteCmd and FileWriteCmd events, but by default only provides a :Write command to check-then-write.install details
Put this file in one of the locations described in :help ftplugin such as "~/.vim/after/ftplugin"; if you want autocommands, which are quirky, define perl_synwrite_au = 1
This is compiler script that runs perl -Wc and parses all error and warnings. For more information how to use compilers in VIM read help.
This version has workaround with redirecting stderr on windows platform so it can run either on unixes or windows.
Enjoy. Lukasinstall details Just put in the $VIMRUNTIME/compiler directory and run :make.
Provides the following commands:
:ExecPerl script_name
This will execute script_name using the perl
interpreter.
:ExecPerlMore
This will execute script_name using the perl
interpreter. If the output would scroll past the end
of the screen, execution pauses and waits for a
keystroke before continuing.
:ExecPerlDump
This will ask you for an output file and then
execute script_name using the perl interpreter. The
output from the script is dumped to the file that you
entered when you were prompted. You may press enter
instead of entering a file name to accept the default
filename.
Also, The following keys are mapped by default. You'll have to
comment them if you don't want this behavior:
<F5>: ExecPerl the current file being edited
<C-F5>: ExecPerlMore the current file being edited
<S-F5>: ExecPerlDump the current file being edited
[Jan 2, 2005] ExecPerl - Utilities for executing perl scripts vim online
Provides the following commands:
:ExecPerl script_name
This will execute script_name using the perl
interpreter.
:ExecPerlMore
This will execute script_name using the perl
interpreter. If the output would scroll past the end
of the screen, execution pauses and waits for a
keystroke before continuing.
:ExecPerlDump
This will ask you for an output file and then
execute script_name using the perl interpreter. The
output from the script is dumped to the file that you
entered when you were prompted. You may press enter
instead of entering a file name to accept the default
filename.
Also, The following keys are mapped by default. You'll have to
comment them if you don't want this behavior:
<F5>: ExecPerl the current file being edited
<C-F5>: ExecPerlMore the current file being edited
<S-F5>: ExecPerlDump the current file being edited
Copyright © 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Disclaimer:
Last updated: August 15, 2009