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 790  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: 18.116.51.117

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github