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.

32 lines
765 B
VimL

1 year ago
" banana.vim - Convert Base Banana (https://git.lattuga.net/itec/banana) and back
" T4 - totem4@tropici.net
" Version: 0.1
if exists("g:loaded_Banana") || &cp
finish
endif
1 year ago
let g:loaded_Banana= 1
let s:keepcpo = &cpo
set cpo&vim
1 year ago
if !hasmapto('<Plug>BananaEnc')
1 year ago
map <unique> <Leader>b <Plug>BananaEnc
endif
1 year ago
if !hasmapto('<Plug>BananaDec')
1 year ago
map <unique> <Leader>d <Plug>BananaDec
endif
vnoremap <silent> <unique> <script> <Plug>BananaEnc
\ :call banana#Enc()<CR>
vnoremap <silent> <unique> <script> <Plug>BananaDec
\ :call banana#Dec()<CR>
nnoremap <silent> <unique> <script> <Plug>BananaEnc
\ :call banana#EncLine()<CR>
nnoremap <silent> <unique> <script> <Plug>BananaDec
\ :call banana#DecLine()<CR>
let &cpo= s:keepcpo
unlet s:keepcpo