Skip to content
Menu
i do, therefore i am
  • Home
  • Blog
  • Contact us
i do, therefore i am
May 24, 2023May 24, 2023

vim as Hex-Editor

The trusty vim can be used as a hex editor by using the xxd filter. Just use the following command:

:%!xxd

This basically means:

%!: select all
xxd: filter

Once the filter has been applied the view can be something like this (for a .png file):

If changes are needed, they should be made to the left (binary) side. Changes to the right side will be discarded.

To go back to the normal view apply the filter in reverse:

:%!xxd -r

That’s all there is to it, vim as hex editor. Enjoy!

Recent Posts

  • vim as Hex-Editor
  • installing pico-sdk in wsl
  • A WordPress theme from scratch 5
  • A WordPress theme from scratch 4
  • Serial Port Windows

Recent Comments

    Archives

    • May 2023
    • January 2023
    • November 2022
    • October 2022
    • September 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2021

    Categories

    • Fortran
    • linux
    • Postgresql
    • Programming
    • Python
    • Tools, tips and tricks
    • Wordpress

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Postgres

    • postgres-docs

    Python

    • data model
    • the standard library
    • python tips
    • import system
    • asyncio
    • built-in functions

    Open_VMS

    • lexicals at marc’s place
    • documentation and manuals
    • system services
    • rms services reference
    ©2025 i do, therefore i am | Powered by WordPress and Superb Themes!
    Menu
    i do, therefore i am
    • Home
    • Blog
    • Contact us