On Wed, Feb 9, 2011 at 11:00 AM, Xavier Wang <weasley...@gmail.com> wrote:
>
> thank you for you patch! I desired editing hex text in Vim in a long time.
> hex-columnview.patch can't compile in VC2008, you add preprocessing routine
> within a macro, and VC can not hand this.
> change all
> RET_WIN_BUF_CHARTABSIZE(curwin, curbuf, s, col
> #ifdef FEAT_HEX
> , sep
> #endif
> )
> like macro to:
> # ifndef FEAT_HEX
>         RET_WIN_BUF_CHARTABSIZE(curwin, curbuf, s, col)
> # else
>         RET_WIN_BUF_CHARTABSIZE(curwin, curbuf, s, col, sep)
> # endif
> may resolve this problem.
> but when I set columnview, Vim behaves strange. it usually only show one or
> two line of text, and the nest of line are "@", I don't know why it happens.
> and, maybe you can close the syntax highlights or add new highlights groups.
> and, how to show the original text after the hex text, so as in a normal hex
> editor?

I didn't answer all your questions here before.
The part about highlight groups I don't quite follow. I chose to keep
the highlighting as is. It is possible to disable highlighting or
chose another syntax to change the highlighting if you wish.
To show both hex and normal side by side I suggest the following commands.
set cpo-=n
set hnu
set cov=16,8,2
set list
set wrap
gg
set scrollbind
set dym=dot
vsplit
set dym=hex
This should become either a :hexthis internal command or be part of a
hex editing support vim script in the future.

I looked into the 'columnview' @ problem. I fixed the patch so it
should work with the new patch.
I'm still wondering if I'm heading it the right direction with the
columnview. I think I need to get more specific specifications to see
if it can work this way or if I should take another approach.

hex-columnview-fix1.patch: The patch should be applied in stead of the
previous 'columnview' patch. The hex-hexnumber.patch needs to be
applied.

Suggestions on how columnview should work are welcome. Considering
separations and line breaks based on bytes, column or virtual column,
maybe even dependant if it is used for only line breaks or dependant
on the 'diplaymode' setting, etc. Should 'columnview' line breaking
only be active when 'wrap' is set of should it work independent so you
can specify wrapping text on a fixed with which isn't the with of the
window, like 'wrap' does now, going in that directions maybe take
'linebreak' into account. Also when 'columnview' is set to 20,8 should
it place a separation on column 8 and 16 on every wrapped line part or
should it place it at column 8 and 16 and on column 4(24-20) and
12(32-20) on the next wrapped line.

Regards,
Peter

-- 
You received this message from the "vim_dev" 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

Attachment: hex-columnview-fix1.patch
Description: Binary data

Raspunde prin e-mail lui