🧮 convy.nvim - Easily convert anything between various formats
reddit.com·12h·
Discuss: r/neovim
Flag this post

convy.nvim prompts an interactive Formats selection window when fed no arguments

Check the full docs at convy.nvim

✨ Features

🔄 Convert between multiple formats: ASCII, base64, bin, decimal, hex, octal

🤖 Auto-detection of input format

🎯 Smart selection: works with visual selection or word-under-cursor

🎨 Interactive floating window UI for format selection

🚀 Usage

Let’s say you need to convert the following from DEC to ASCII: 72,101,108,108,111

Using vim’s substitute you’d have to select the numbers and execute the following in cmdline:

:'<,'>s/\%V\v(\d+)[,s]*/\=nr2char(submatch(1))/g

Good luck remembering that!

With convy.nvim I can simply do <leader>ca, which yo…

Similar Posts

Loading similar posts...