1
0
Fork
You've already forked triplets.vim
0
Vim plugin making numbers more readable by changing 1000000 to 1_000_000.
  • Vim Script 100%
2024年01月24日 21:50:31 -05:00
autoload fix inversion in files 2024年01月24日 21:50:31 -05:00
plugin fix inversion in files 2024年01月24日 21:50:31 -05:00
LICENSE Initial commit 2024年01月18日 01:36:50 +00:00
README.md fix url in readme 2024年01月24日 21:50:20 -05:00

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

cd ~/.vim/bundle
git clone https://codeberg.org/LionelMartin/triplets.vim.git
" .vimrc
Bundle 'https://codeberg.org/LionelMartin/triplets.vim.git'
" .vimrc
call minpac#add('https://codeberg.org/LionelMartin/triplets.vim.git')

Usage

	nnoremap <leader>tr :Triplets<cr>