https://github.com/taybart/b64.nvim
Base64 encode and decode inside of neovim.
https://github.com/taybart/b64.nvim
lua neovim
Last synced: 1 day ago
JSON representation
Base64 encode and decode inside of neovim.
- Host: GitHub
- URL: https://github.com/taybart/b64.nvim
- Owner: taybart
- Created: 2021-07-12T21:39:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-07-07T18:53:39.000Z (7 months ago)
- Last Synced: 2025-11-12T05:18:38.236Z (3 months ago)
- Topics: lua, neovim
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 21
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# b64.nvim
Base64 encode and decode inside of vim.
[example](https://user-images.githubusercontent.com/3513897/131199698-4001809a-bbf3-45cc-a8c4-7742483ff632.mp4)
#### Install
```lua
-- lazy
{ 'taybart/b64.nvim' }
```
```vim
" vim-plug
Plug 'taybart/b64.nvim'
```
#### Usage
Highlight some text then`:B64Encode` or `:B64Decode`
Programatically:
```lua
local p = 'hello world'
local b = require('b64').enc(p)
print(b) -- aGVsbG8gd29ybGQ=
p = require('b64').dec(b)
print(p) -- hello world
```
#### Recommended Keymaps
```vim
vnoremap be :lua require("b64").encode()
vnoremap bd :lua require("b64").decode()
```