sponsor Vim development Vim logo Vim Book Ad

hexsearch.vim : search with a hexadecimal string

 script karma  Rating 8/5, Downloaded by 1083  Comments, bugs, improvements  Vim wiki

created by
Andy Wokula
script type
This is a preprocessor to Vim's search command.
It converts a sequence of hex numbers into a usual search pattern
(one char per hex-code).  Searching is literal.

    :HexSearch 56696d 20 72756c657a21
finds ... you know.

If 'fileformat' is unix or mac, there is (almost) no difference to searching
for a hex string in a hex-editor.

Here is the "almost" case for 'ff=unix':
    :HexSearch 0A
finds a linebreak at the end of the file, even if there isn't one.

See inside script for more details.
install details
:source hexsearch.vim

when needed or put script in plugin folder

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
hexsearch.vim 1 2007-01-29 6.0 Andy Wokula Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.