From df4b8a9ce5e8e151fab573848fca331225ededcd Mon Sep 17 00:00:00 2001 From: totem4 Date: Fri, 2 Oct 2020 00:48:38 +0200 Subject: [PATCH] Upload files to 'plugin' initial commit --- plugin/Banana.vim | 195 ++++++++++++++++++++++++++++++++++++++++++++++ plugin/banana.py | 107 +++++++++++++++++++++++++ 2 files changed, 302 insertions(+) create mode 100644 plugin/Banana.vim create mode 100644 plugin/banana.py diff --git a/plugin/Banana.vim b/plugin/Banana.vim new file mode 100644 index 0000000..b6d18ae --- /dev/null +++ b/plugin/Banana.vim @@ -0,0 +1,195 @@ +"------------------------------------------------------------------------------ +" 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