hexman.vim


Ⅰ. 插件描述

Simpler Hex viewing and editing

Ⅱ. 基本信息

创建日期:  2003-06-05
使用用户:  11
Github星:  7
插件作者:  Peter Franz

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/hexman-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/hexman-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/hexman-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/hexman.vim

Ⅳ. 文档说明

Hexmanger provides keymapping to view quickly your file
in hexmode (convertion is done over the program xxd).
                                                              
Additional features:

  • shows in statusline the current offset (hex and dec.)
  • move to next/previous hex character with <TAB> and <S-TAB>
      If you don't like this mapping - please set in your vimrc:

  let hex_movetab = 0

  • staying on a hex character it marks the related ascii column
  • Goto hex offset
  • Delete hex character under cursor
  • Insert ascii character before cursor

Available functions:
                                                                    
<leader> hm HexManager: Call/Leave Hexmode (using xxd)
<leader> hd   HexDelete: delete hex character under cursor
<leader> hi   HexInsert: Insert Ascii character before cursor
<leader> hg   HexGoto: Goto hex offset.
<leader> hn   HexNext: Goto next hex offset.
<leader> hp   HexPrev: Goto previous hex offset.
<leader> hs   HexStatus: Show / Hide hexoffset infos in statusline
                         and related ascii column
                                                                    
If you want, you can change the mapping in your vimrc:
Example (call with function key F6 the Hexmode:
map <F6>  <Plug>HexManager                                          

                    

添加新评论