"============================================================================= " base64.vim --- SpaceVim base64 API " Copyright (c) 2016-2023 Wang Shidong & Contributors " Author: Wang Shidong < wsdjeg@outlook.com > " URL: https://spacevim.org " License: GPLv3 "============================================================================= let s:self = {} let s:CMP = SpaceVim#api#import('vim#compatible') if s:CMP.has('python') && !has('nvim-0.7') " https://github.com/neovim/neovim/pull/17222 " @vimlint(EVL103, 1, a:text) function! s:self.encode(text) abort py import vim py import base64 py ret = base64.b64encode(vim.eval('a:text')) py vim.command("return '{}'".format(ret)) endfunction " base64Test => YmFzZTY0VGVzdA== function! s:self.decode(text) abort python <