Skip to content

vim-scripts/beanshell.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=408

This script invokes BeanShell ( see http://www.beanshell.org ) on the contents of the current buffer.

The script depends on java (needed to run BeanShell) as well as BeanShell itself.  The java executable should be in your PATH and the BeanShell jar should be in your CLASSPATH in order to use this script in its default configuration.

Press "<Leader>br" and BeanShell will be invoked on the contents of the current buffer (the current buffer will not be written out).  The output from BeanShell will appear in a new window.

BeanShell may also be invoked by entering the command ":BeanShell" or by selecting the "Invoke BeanShell" item from the "Plugin" menu.

Starting with version 1.2, a range may be supplied to the "BeanShell" command and the key command may be activated within a visual block.  Invoking BeanShell this way will cause it to act upon the specified lines rather than the entire buffer.