sponsor Vim development Vim logo Vim Book Ad

InsertTry.vim : put java's try catch around marked lines

 script karma  Rating 7/4, Downloaded by 972  Comments, bugs, improvements  Vim wiki

created by
Roman Wagner
 
script type
ftplugin
 
description
mark some lines and type ¬t
the marked lines will be enclosed in a try block with an additional catch and finally block

Whre is the ¬ key? Feel free to change this.

customize:
:let b:java_InsertTry_Style="Java" | "C" | "JavaShort"                         default = "Java"
:let b:java_InsertTry_Goto="catch" | "."                                                   default = "catch"

 
install details
simply copy to
${VIMRUNTIME}/ftplugin/java/
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
InsertTry.vim 0.2 2004-09-28 6.0 Roman Wagner * bugs deleted
* new features ( see description )
InsertTry.vim 0.1 2004-09-27 6.0 Roman Wagner Initial upload
ip used for rating: 216.73.216.46

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github