diff --git a/autoload/SpaceVim/api/data/base64.vim b/autoload/SpaceVim/api/data/base64.vim new file mode 100644 index 000000000..d333cab75 --- /dev/null +++ b/autoload/SpaceVim/api/data/base64.vim @@ -0,0 +1,123 @@ +let s:self = {} + + +if has('python') + " @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 <