Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.

rr-/hexvi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexvi - a hex editor inspired by Vim.

Installation

  • Global: sudo python setup.py install
  • Local: python setup.py install --local

Features

Note:

dec denotes any valid decimal number.
hex denotes any valid hexadecimal number.

  • Opening, displaying and saving files
  • Multiple buffers (via tabs)
  • Editing same file in multiple buffers
  • Support for large files
  • Everything is a command
  • Simple installation via setuptools
  • User configuration via ~/.config/hexvirc and ~/.hexvirc
    • Color schemes
    • Customizable bindings (every binding directly corresponds to a command)
  • Flow
    • Ctrl+WCtrl+W, Ctrl+WW, Tab: switch between hex and ASCII dump
    • Ctrl+WCtrl+H, Ctrl+WH: switch to hex dump
    • Ctrl+WCtrl+L, Ctrl+WL: switch to ASCII dump
    • Ctrl+Q: quit
  • Movement
    • h, : move cursor one character to the left
    • l, : move cursor one character to the right
    • j, : move cursor down one display line
    • k, : move cursor up one display line
    • dech, dec: move cursor dec characters to the left
    • decl, dec: move cursor dec characters to the right
    • decj, dec: move cursor down dec display lines
    • deck, dec: move cursor up dec display lines
    • gg: move cursor to the beginning of the file
    • G: move cursor to the end of file
    • hexG: move cursor to the hex offset
    • ^, 0: move cursor to the start of display line
    • $: move cursor to the end of display line
    • w: move cursor to the next word
    • b: move cursor to the previous word
    • PgUp, Shift+up, Ctrl+B: previous page
    • PgDown, Shift+down, Ctrl+F: next page
    • H: jump to screen top
    • M: jump to screen middle
    • L: jump to screen bottom
    • dec%: jump to % of file
  • Test inserting (i, a)
  • Text replacing (r)
  • Text removal
    • x: remove character to the right
    • decx: remove dec characters to the right
    • X: remove character to the left
    • decX: remove dec characters to the left
    • d + all of the movement commands
  • Tab management
    • Ctrl+T: open new tab
    • gt: next tab
    • gT: previous tab
  • Search
    • forward search via /
    • backward search via ?
    • PCRE regexes (examples: a.*b, [\xF0-\xFF])
    • n: jump to next match
    • N: jump to previous match
    • decn: jump to dec-th next match
    • decN: jump to dec-th previous match

Planned features

  • Warning if file content was unsaved before closing
  • :e! path
  • Undo/redo
  • More movement commands (t, f, T, F)
  • Easier jumps to offsets (:deadbeef, possibly ghexCR)
  • Improved normal mode key retractions
  • Command history (, Ctrl+P)
  • Visual mode
  • Yank/paste
  • Search and replace
  • Man page
  • Enhanced control over appearance
    • Showing the file is modified with tab color
  • More built-in color schemes

Features not likely to be added

  • Support for marks
  • Tab in command mode to auto complete input command
  • d/..., d?... to delete up until searched text
  • Ctrl+R in command mode to search command history
  • Ctrl+O in normal mode to jump to last edit place, stack-based

About

A hex editor inspired by Vim.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages