{"id":13485269,"url":"https://github.com/fidian/hexmode","last_synced_at":"2025-07-04T01:04:54.595Z","repository":{"id":4655105,"uuid":"5800785","full_name":"fidian/hexmode","owner":"fidian","description":"Vim plugin to edit binary files in a hex mode automatically.","archived":false,"fork":false,"pushed_at":"2023-02-08T17:15:06.000Z","size":57,"stargazers_count":150,"open_issues_count":5,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-06T00:03:39.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fidian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-09-13T20:47:37.000Z","updated_at":"2025-04-10T14:32:34.000Z","dependencies_parsed_at":"2023-07-05T19:47:46.676Z","dependency_job_id":null,"html_url":"https://github.com/fidian/hexmode","commit_stats":{"total_commits":60,"total_committers":13,"mean_commits":4.615384615384615,"dds":0.6166666666666667,"last_synced_commit":"550cae65fdbd06d61d757dc6fe5a9be5be2e3ef4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fidian/hexmode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fhexmode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fhexmode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fhexmode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fhexmode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fidian","download_url":"https://codeload.github.com/fidian/hexmode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fidian%2Fhexmode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263427306,"owners_count":23464842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:01:53.502Z","updated_at":"2025-07-04T01:04:54.512Z","avatar_url":"https://github.com/fidian.png","language":"Vim Script","readme":"Hexmode - Hex editing in Vim\n============================\n\nEver need a hex editor?  Tired of installing `ncurses-hexedit`, `hexedit`, or\nmaybe even using an `od` script to format some binary file as hex just so you\ncan see if there are null characters at the end of the file?  Fret no longer!\n\nThankfully, there is a wonderful [wiki page][wiki] that illustrated not only how\nto use `xxd` to filter files to/from hex, but it also provided a great function,\ncalled ToggleHex.  On top of that, there are buffer reading and writing hooks so\nusing vim to edit a binary file will automatically edit it as hex.\n\nAlso, on that wiki page, it mentions how to avoid getting the \"Press ENTER or\ntype command to continue\" message that would normally show up.  By adding\n`silent` in a couple places, the ToggleHex function now operates quietly.\nFantastic!\n\nSo now I put out this repository so others can easily grab the plugin as just\na single file instead of copying and pasting the bits from the webpage and also\nfiguring out where to put this magical `silent` command.\n\n\nInstallation\n------------\n\nFirst, install the [Pathogen][pathogen] plugin if you don't already have it.\nAdding other plugins by using Pathogen makes things much easier.  Careful: the\nsecond command is quite long.\n\n1. `mkdir -p ~/.vim/autoload ~/.vim/bundle`\n2. `curl -so ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim`\n3. `echo 'call pathogen#infect()' \u003e\u003e ~/.vimrc`\n\nNow we can clone this repository into your `~/.vim/bundle` directory.\n\n1. `cd ~/.vim/bundle`\n2. `git clone https://github.com/fidian/hexmode.git`\n\n\nUsage\n-----\n\nSimply editing a file in binary mode, e.g.,\n\n    vim -b some_file.jpg\n\nwill open it in hex mode.\n\nAlso, you can use `:Hexmode` to switch between hex editing and normal editing.\n\nUse the `g:hexmode_patterns` flag to automatically open specific file patterns\nin hex mode. E.g.,\n\n    let g:hexmode_patterns = '*.bin,*.exe,*.dat,*.o'\n\n\nUse the `g:hexmode_xxd_options` flag to pass options to xxd. E.g.,\n\n    let g:hexmode_xxd_options = '-g 1'\n\n\nCredits and License\n-------------------\n\nTyler Akins (the \"fidian\" guy at GitHub) did *not* write this.  Mad props go out\nto Fritzophrenic for fulfilling this need so completely.  Also, look at the\ncommit log for other contributions that were received after the plugin was\nreleased on GitHub.\n\nThe plugin is under a [Creative Commons Attribution-Share Alike License 3.0\n(Unported)][cc-by-sa] because the original post was under that license.  Make\nsure that all code contributions are also under this license.  Officially, here\nis the notice:\n\n\u003e This vim plugin uses material from the [\"Improved hex editing\"][wiki] article\n\u003e on the [Vim Tips Wiki][vimwiki] at [Wikia][wikia] and is licensed under the\n\u003e [Creative Commons Attribution-Share Alike License][cc-by-sa].\n\n\nAlternatives and Enhancements\n-----------------------------\n\nYou might want to look at [hexman.vim][hexman] for additional functionality.\nAlso, I'd be happy to accept pull requests if there are some improvements that\nyou would be willing to submit to the project.\n\n\n[cc-by-sa]: http://creativecommons.org/licenses/by-sa/3.0/\n[hexman]: http://www.vim.org/scripts/script.php?script_id=666\n[pathogen]: https://github.com/tpope/vim-pathogen/\n[vimwiki]: http://vim.wikia.com/\n[wiki]: http://vim.wikia.com/wiki/Improved_hex_editing\n[wikia]: http://www.wikia.com/\n","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffidian%2Fhexmode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffidian%2Fhexmode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffidian%2Fhexmode/lists"}