1
0
Fork 0

Add base64 functions

This commit is contained in:
J. Elfring (i) 2024-05-06 10:31:36 +02:00
parent b9d8d431bb
commit 373c28ba9c

View file

@ -320,5 +320,8 @@ let NERDTreeIgnore=['\.vim$', '\~$', '\.git$', '.DS_Store']
" Close nerdtree and vim on close file
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" ==================== Base64 de- and encoding ====================
vnoremap <leader>b64d y:let @"=system('base64 -w 0 --decode', @")<cr>gvP
vnoremap <leader>b64e y:let @"=system('base64 -w 0', @")<cr>gvP
" vim:ts=2:sw=2:et