"------------------------------------------------------------------------------ " Exit when your app has already been loaded (or "compatible" mode set) if exists("g:loaded_Banana") || &cp finish endif let g:loaded_Banana= 1 " your version number let s:keepcpo = &cpo set cpo&vim " Public Interface: " AppFunction: is a function you expect your users to call " PickAMap: some sequence of characters that will run your AppFunction " Repeat these three lines as needed for multiple functions which will " be used to provide an interface for the user if !hasmapto('BananaEnc') map b BananaEnc endif if !hasmapto('BananaDec') map d BananaDec endif " "" Global Maps: "" "noremap