Technology
 

Vim Tips Wiki

From Vim Tips Wiki

Welcome to the Vim Tips wiki

This wiki is about the editor Vim. We aim to exchange tips and tricks with other Vim users. Please help by improving or adding comments to any tip.

If you are new to Vim, we have plenty of tips that will help you get started.

We are currently editing over 1,598 articles.

Featured tip for November view archive

Programmers often need to convert numbers from hexadecimal to decimal, or vice versa. You can simply enter a command like :echo 0x1234 to display the decimal equivalent of hex 1234, or enter :echo printf('%x',1234) to display the hex equivalent of decimal 1234.

For more serious converting, our user-defined command :Dec2hex converts all decimal numbers in a selected area to hex, and :Hex2dec does the reverse.

Our featured tip has the details, as well as links to tips showing how to display or edit binary files in hex. A method to convert the current line to or from percent-encoded hex is also provided.

Did you know? view archive

From Vim Help view archive

Information

  • Search the tips
VimTip (5)
Integration (5)
Plugin (1)
Usage (18)
  • Access tips by tip id, for example tip 1 is VimTip1