An open API service indexing awesome lists of open source software.

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.

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()
```