Hi All,

I'm using gVim in Windows XP. I want use Vim as a HEX viewer.


I open file with gvim's  -b  option . But when I check the file, some thing
are not correct.


For example, I have generate a 960KB file. I use some other HEX editor to
view it, the file is exactly from 0x0 to 0xEFFFF.

But with gVim, the offset is more than 0xF0000. I have compared the display,
it seems sometimes gVim change the 0x9000 to 0x202020.


I have tried to change the setting of encoding and fileencoding, but it
doesn't work.


Could anyone give me some suggestion?



Some configuration in my vimrc file are:


set encoding=utf-8

set fileencodings=utf-8,chinese


augroup Binary

  au!


  au BufReadPost *.* if &bin | %!xxd

  au BufReadPost *.* set set ft=xxd | endif


  au BufWritePre  *.* if &bin | %!xxd -r

  au BufWritePre  *.* endif

  au BufWritePost *.* if &bin | %!xxd

  au BufWritePost *.* set nomod | endif

augroup END


Thanks!


 Sincerely,


 Michael

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to