8000 GitHub - rr-/vim-hexdec: Convert hexadecimal numbers to decimal and vice versa.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rr-/vim-hexdec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-hexdec

A small number base conversion script for Neovim.

Description

This vim plugin lets you convert hexadecimal numbers to decimal counterparts and vice versa by exposing following functions:

  • :Hex2Dec
  • :Dec2Hex
  • :Dec2Hexl
  • :ToggleHexDec

The functions work for visual selection, block selection, line ranges and the whole buffer. Conversion should work for arbitrary positive integers.

Bindings

The plugin doesn't define any bindings and leaves the choice to the user. Here's a demonstration how to bind the commands in the .vimrc file:

nnoremap gbh :Dec2Hex<CR>
nnoremap gbl :Dec2Hexl<CR>
nnoremap gbd :Hex2Dec<CR>
nnoremap gbt :ToggleHexDec<CR>

Installation

Use your favorite plugin manager. For example, using vim-plug:

Plug 'rr-/vim-hexdec'

Related work

Based on:

About

Convert hexadecimal numbers to decimal and vice versa.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0