Loading ...
Sorry, an error occurred while loading the content.

option wanted: 'hlcolumn'

Expand Messages
  • Vit Stradal
    Hello, It would be nice, if (optionaly ofcourse:) some column on right side of window (say tw column) will be hightighted. (Does enybody remeber qed.exe?).
    Message 1 of 9 , May 1, 2003
    • 0 Attachment
      Hello,

      It would be nice, if (optionaly ofcourse:) some column on right side
      of window (say 'tw' column) will be hightighted. (Does enybody remeber
      qed.exe?). It can be useful, when i have wide term (more then 80
      columns), but i want to write readable-in-80-columns-term code.

      Better (???) explanation of this idea:
      *'hlcolumn'* *'hlc'*
      'hlcolumn' 'hlc' number (default: 0)
      buffer
      {not in Vi}
      Highlight the 'hlcolumn' column (if visible). When set to 0 no column
      will be highlighted. When set to -1, highlight the 'textwidth'+1
      column.
      NOTE: This option is reset when 'compatible' is set.

      I try do that. It looks it is working... but one never know.

      I'll be glad if you find it useful. Comments welcomed.

      vitas
      @;;
      --
      keep snailing @_;;
    • Ross Presser
      This seems unnecessary. Take a look at the example under :help match Another example, which highlights all characters in virtual column 72 and more: ...
      Message 2 of 9 , May 1, 2003
      • 0 Attachment
        This seems unnecessary. Take a look at the example under :help match

        Another example, which highlights all characters in virtual
        column 72 and more: >
        :highlight rightMargin term=bold ctermfg=blue
        guifg=blue
        :match rightMargin /.\%>72v/



        > -----Original Message-----
        > From: Vit Stradal [mailto:vitas@...]
        > Sent: Thursday, May 01, 2003 2:36 pm
        > To:
        > Subject: option wanted: 'hlcolumn'
        >
        >
        > Hello,
        >
        > It would be nice, if (optionaly ofcourse:) some column on right side
        > of window (say 'tw' column) will be hightighted. (Does enybody remeber
        > qed.exe?). It can be useful, when i have wide term (more then 80
        > columns), but i want to write readable-in-80-columns-term code.
        >
        > Better (???) explanation of this idea:
        > *'hlcolumn'* *'hlc'*
        > 'hlcolumn' 'hlc' number (default: 0)
        > buffer
        > {not in Vi}
        > Highlight the 'hlcolumn' column (if visible). When
        > set to 0 no column
        > will be highlighted. When set to -1, highlight the
        > 'textwidth'+1
        > column.
        > NOTE: This option is reset when 'compatible' is set.
        >
        > I try do that. It looks it is working... but one never know.
        >
        > I'll be glad if you find it useful. Comments welcomed.
        >
        > vitas
        > @;;
        > --
        > keep snailing @_;;
        >
      • Vit Stradal
        ... I don t think so. This is not exactly what i wanted. This not hightlight 72 nd column in lines shorter than 72 chars. Btw: I found a mistake in my patch
        Message 3 of 9 , May 5, 2003
        • 0 Attachment
          On Thu, May 01, 2003 at 03:11:30PM -0400, Ross Presser wrote:
          > This seems unnecessary. Take a look at the example under :help
          > match
          >
          > Another example, which highlights all characters in virtual
          > column 72 and more:
          :highlight rightMargin term=bold ctermfg=blue guifg=blue
          :match rightMargin /.\%>72v/

          I don't think so. This is not exactly what i wanted. This not
          hightlight 72'nd column in lines shorter than 72 chars.

          Btw: I found a mistake in my patch (when 'nowrap' is set).
          I'm working on that.

          vitas
          @;;
          --
          keep snailling @_;;
        • Vit Stradal
          Hello, here is hlcolumn patch (agains 6.2e). It hightlights nth column (in all lines short or long) to see where is (for example) tw . nowrap problem was
          Message 4 of 9 , May 21, 2003
          • 0 Attachment
            Hello,

            here is 'hlcolumn' patch (agains 6.2e). It hightlights nth column (in
            all lines short or long) to see where is (for example) 'tw'.

            'nowrap' problem was fixed.

            Enjoy.

            vitas
            @;;
            --
            keep snailling @_;;
          • Denis Perelyubskiy
            Vit, On Wed, 21 May 2003 22:24:43 +0200, Vit Stradal ... I love it, thanks. Bram, can this be included somewhere sometime? Please :-) ? thanks, denis -- //
            Message 5 of 9 , May 21, 2003
            • 0 Attachment
              Vit,

              On Wed, 21 May 2003 22:24:43 +0200, "Vit Stradal"
              <vitas@...> said:
              > Hello,
              >
              > here is 'hlcolumn' patch (agains 6.2e). It hightlights nth column (in
              > all lines short or long) to see where is (for example) 'tw'.
              >
              > 'nowrap' problem was fixed.

              I love it, thanks.

              Bram, can this be included somewhere sometime? Please :-) ?

              thanks,

              denis
              --
              // mailto: Denis Perelyubskiy <lists at overwhelmTAKECAPITALSOUT dot net>
              // icq : 12359698
            • Denis Perelyubskiy
              On Wed, 21 May 2003 22:24:43 +0200, Vit Stradal ... Actually, one question: is it possible to change the color with which hilighting is done? I played
              Message 6 of 9 , May 21, 2003
              • 0 Attachment
                On Wed, 21 May 2003 22:24:43 +0200, "Vit Stradal"
                <vitas@...> said:
                > Hello,
                >
                > here is 'hlcolumn' patch (agains 6.2e). It hightlights nth column (in
                > all lines short or long) to see where is (for example) 'tw'.
                >
                > 'nowrap' problem was fixed.

                Actually, one question: is it possible to change the
                color with which hilighting is done? I played around, but
                could not get the color to change with the Column option.

                thanks,

                denis
                --
                // mailto: Denis Perelyubskiy <lists at overwhelmTAKECAPITALSOUT dot net>
                // icq : 12359698
              • Vit Stradal
                Hello, ... Aha. Sorry, my mistake. ... +++ option.c Thu May 22 08:40:15 2003 @@ -1054,7 +1054,7 @@ {(char_u *)FALSE, (char_u *)0L}}, { highlight , hl ,
                Message 7 of 9 , May 21, 2003
                • 0 Attachment
                  Hello,

                  On Wed, May 21, 2003 at 03:07:51PM -0800, Denis Perelyubskiy wrote:
                  > On Wed, 21 May 2003 22:24:43 +0200, "Vit Stradal"
                  >
                  > > here is 'hlcolumn' patch (agains 6.2e). It hightlights nth column
                  > > (in all lines short or long) to see where is (for example) 'tw'.
                  >
                  > Actually, one question: is it possible to change the
                  > color with which hilighting is done? I played around, but
                  > could not get the color to change with the Column option.

                  Aha. Sorry, my mistake.

                  Dirty solution:

                  :hi DiffAdd term=reverse cterm=bold ctermfg=7 ctermbg=1

                  Or better:

                  --- option.c.orig Thu May 22 08:40:10 2003
                  +++ option.c Thu May 22 08:40:15 2003
                  @@ -1054,7 +1054,7 @@
                  {(char_u *)FALSE, (char_u *)0L}},
                  {"highlight", "hl", P_STRING|P_VI_DEF|P_RCLR|P_COMMA|P_NODUP,
                  (char_u *)&p_hl, PV_NONE,
                  - {(char_u *)"8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,H:DiffAdd",
                  + {(char_u *)"8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,H:Column",
                  (char_u *)0L}},
                  {"history", "hi", P_NUM|P_VIM,
                  (char_u *)&p_hi, PV_NONE,

                  and than:

                  :hi Column term=reverse cterm=bold ctermfg=7 ctermbg=1

                  vitas
                  @;;
                  --
                  keep snailling @_;;
                • Vit Stradal
                  Hello If somebody is still interested, here is hlcolumn patch agains vim62 (amiga memorial). http://vitas.matfyz.cz/vim/vim62-hlc.patch vitas @;; -- keep
                  Message 8 of 9 , Jun 2, 2003
                  • 0 Attachment
                    Hello

                    If somebody is still interested, here is hlcolumn patch agains
                    vim62 (amiga memorial).

                    http://vitas.matfyz.cz/vim/vim62-hlc.patch

                    vitas
                    @;;
                    --
                    keep snailing @;;
                  • BStrohhaecker@hueller-hille.com
                    ... I like it. FYIO, to get the patch running with newest vim62 (pc) sources under ... Thanks, Bernd
                    Message 9 of 9 , Jun 2, 2003
                    • 0 Attachment
                      > -----Ursprungliche Nachricht-----
                      > Von: Vit Stradal [mailto:vitas@...]
                      > Gesendet: Montag, 2. Juni 2003 11:30
                      > An: vim-dev@...
                      > Betreff: Re: option wanted: 'hlcolumn'
                      >
                      >
                      > Hello
                      >
                      > If somebody is still interested, here is hlcolumn patch agains
                      > vim62 (amiga memorial).
                      >
                      > http://vitas.matfyz.cz/vim/vim62-hlc.patch
                      >
                      > vitas
                      > @;;
                      > --
                      > keep snailing @;;

                      I like it.

                      FYIO, to get the patch running with newest vim62 (pc) sources under
                      win2k I used the following:

                      :%s/vim62f/vim62/g
                      :%s#/runtime##g

                      Thanks, Bernd
                    Your message has been successfully submitted and would be delivered to recipients shortly.