You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
" banana.vim - Convert Base Banana (https://git.lattuga.net/itec/banana) and back
|
|
|
|
" T4 - totem4@tropici.net
|
|
|
|
" Version: 0.1
|
|
|
|
|
|
|
|
vim9script
|
|
|
|
|
|
|
|
if exists("g:loaded_Banana") || &cp
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
g:loaded_Banana = 1
|
|
|
|
var keepcpo = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
if !hasmapto('<Plug>BananaEnc')
|
|
|
|
map <unique> <Leader>b <Plug>BananaEnc
|
|
|
|
endif
|
|
|
|
|
|
|
|
if !hasmapto('<Plug>BananaDec')
|
|
|
|
map <unique> <Leader>B <Plug>BananaDec
|
|
|
|
endif
|
|
|
|
|
|
|
|
import autoload 'banana.vim'
|
|
|
|
|
|
|
|
nnoremap <silent> <unique> <script> <Plug>BananaEnc
|
|
|
|
\ :call <SID>banana.EncLine()<CR>
|
|
|
|
nnoremap <silent> <unique> <script> <Plug>BananaDec
|
|
|
|
\ :call <SID>banana.DecLine()<CR>
|
|
|
|
vnoremap <silent> <unique> <script> <Plug>BananaEnc
|
|
|
|
\ :call <SID>banana.Enc()<CR>
|
|
|
|
vnoremap <silent> <unique> <script> <Plug>BananaDec
|
|
|
|
\ :call <SID>banana.Dec()<CR>
|
|
|
|
|
|
|
|
&cpo = keepcpo
|
|
|
|
|