Vim plugin making numbers more readable by changing 1000000 to 1_000_000.
| autoload | fix inversion in files | |
| plugin | fix inversion in files | |
| LICENSE | Initial commit | |
| README.md | fix url in readme | |
triplets.vim
Vim plugin making numbers more readable by changing 1000000 to 1_000_000.
A lot of programming languages accept using _ as separator in numbers (like go, javascript, typescript, python, C#, Swift, ada...).
This is a port of readable-number.nvim to vimscript originally posted in a reddit thread by Andrew Radev.
Installation
- With Pathogen
cd ~/.vim/bundle
git clone https://codeberg.org/LionelMartin/triplets.vim.git
- With Vundle
" .vimrc
Bundle 'https://codeberg.org/LionelMartin/triplets.vim.git'
- With minpac
" .vimrc
call minpac#add('https://codeberg.org/LionelMartin/triplets.vim.git')
Usage
nnoremap <leader>tr :Triplets<cr>