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

Re: Minimum buffer size.

Expand Messages
  • Tony Mechelynck
    ... From: Groleo Marius To: Tim Chase Cc: Sent: Thursday, September 01, 2005 2:58 PM Subject: Re:
    Message 1 of 8 , Sep 1 6:40 AM
    • 0 Attachment
      ----- Original Message -----
      From: "Groleo Marius" <groleo@...>
      To: "Tim Chase" <vim@...>
      Cc: <vim@...>
      Sent: Thursday, September 01, 2005 2:58 PM
      Subject: Re: Minimum buffer size.
      [...]

      > The next thing that comes in my mind: can a text , from the statusLine,
      > be highlighted? something like the autocomplete.
      > What I'm thinking of is a better tabbar :P

      see
      :help 'statusline'
      :help hl-User1

      Setting up a working 'statusline' can be tricky. Here is mine, which is only
      slightly enhanced by respect to the default (it's all one line, and if my
      mail client, or yours, "beautifies" it, it will probably be at a
      backslash-escaped space):

      set statusline=%<%f\
      %h%m%r%=%k[%{(&fenc==\"\")?&enc:&fenc}%{(&bomb?\",BOM\":\"\")}]\
      %-14.(%l,%c%V%)\ %P

      The above is single-colour (by default, "inverse-bold" for the current
      status line and "inverse" for the others); check the help items mentioned
      above for up to 9 user-defined colour settings using %1* to %9* in
      'statusline', associated with ":highlight User1 something" in the vimrc or
      (recommended) in a colour scheme.


      HTH,
      Tony.
    • Charles E. Campbell, Jr.
      ... I d like to point out that ZoomWin allows one to zoom into a window (ie. have it expand to take over the entire vim screen) and zoom back to a multiple
      Message 2 of 8 , Sep 1 7:22 AM
      • 0 Attachment
        Tony Mechelynck wrote:

        > ----- Original Message ----- From: "Groleo Marius" <groleo@...>
        > To: "Tim Chase" <vim@...>
        > Cc: <vim@...>
        > Sent: Thursday, September 01, 2005 2:58 PM
        > Subject: Re: Minimum buffer size.
        > [...]
        >
        >> The next thing that comes in my mind: can a text , from the statusLine,
        >> be highlighted? something like the autocomplete.
        >> What I'm thinking of is a better tabbar :P
        >
        > ...
        > Setting up a working 'statusline' can be tricky. Here is mine, which
        > is only slightly enhanced by respect to the default (it's all one
        > line, and if my mail client, or yours, "beautifies" it, it will
        > probably be at a backslash-escaped space):
        >
        > set statusline=%<%f\
        > %h%m%r%=%k[%{(&fenc==\"\")?&enc:&fenc}%{(&bomb?\",BOM\":\"\")}]\
        > %-14.(%l,%c%V%)\ %P
        >

        I'd like to point out that ZoomWin allows one to "zoom into" a window
        (ie. have it expand to take over the entire vim screen)
        and "zoom back" to a multiple window display (whether "tabbed" or not):

        http://vim.sourceforge.net/scripts/script.php?script_id=508

        BTW, here's my status line:

        if has("win32")
        set stl=%1*%f%2*\ %h%m%r%0*%=%-14.(%l,%c%V%)%<\ %P\
        Win%{winnr()}:%{winwidth(0)}x%{winheight(0)}\ %<%{strftime(\"%a\ %b\
        %d,\ %Y,\ %I:%M:%S\ \%p\")}
        else
        set stl=%1*%f%2*\ %h%m%r%0*%=%-14.(%l,%c%V%)%<\ %P\
        Win%{winnr()}:%{winwidth(0)}x%{winheight(0)}\ %<%{strftime(\"%a\ %b\
        %d,\ %Y,\ %l:%M:%S\ \%p\")}
        endif

        As Tony says, watch for mailer-"beautified" mayhem to the commands
        above. I use two "custom" colors; they're defined and available
        in astronaut.vim
        (http://vim.sourceforge.net/scripts/script.php?script_id=122).

        Regards,
        Chip Campbell
      • Groleo Marius
        ... Ok, combining the stuff above, got a little hack. http://photos1.blogger.com/blogger/4648/1229/1600/ss.jpg The topbar should list all the modifiable
        Message 3 of 8 , Sep 1 7:35 AM
        • 0 Attachment
          On 9/1/05, Charles E. Campbell, Jr. <drchip@...> wrote:
          > Tony Mechelynck wrote:
          >
          > > ----- Original Message ----- From: "Groleo Marius" <groleo@...>
          > > To: "Tim Chase" <vim@...>
          > > Cc: <vim@...>
          > > Sent: Thursday, September 01, 2005 2:58 PM
          > > Subject: Re: Minimum buffer size.
          > > [...]
          > >
          > >> The next thing that comes in my mind: can a text , from the statusLine,
          > >> be highlighted? something like the autocomplete.
          > >> What I'm thinking of is a better tabbar :P
          > >
          > > ...
          > > Setting up a working 'statusline' can be tricky. Here is mine, which
          > > is only slightly enhanced by respect to the default (it's all one
          > > line, and if my mail client, or yours, "beautifies" it, it will
          > > probably be at a backslash-escaped space):
          > >
          > > set statusline=%<%f\
          > > %h%m%r%=%k[%{(&fenc==\"\")?&enc:&fenc}%{(&bomb?\",BOM\":\"\")}]\
          > > %-14.(%l,%c%V%)\ %P
          > >
          >
          > I'd like to point out that ZoomWin allows one to "zoom into" a window
          > (ie. have it expand to take over the entire vim screen)
          > and "zoom back" to a multiple window display (whether "tabbed" or not):
          >
          > http://vim.sourceforge.net/scripts/script.php?script_id=508
          >
          > BTW, here's my status line:
          >
          > if has("win32")
          > set stl=%1*%f%2*\ %h%m%r%0*%=%-14.(%l,%c%V%)%<\ %P\
          > Win%{winnr()}:%{winwidth(0)}x%{winheight(0)}\ %<%{strftime(\"%a\ %b\
          > %d,\ %Y,\ %I:%M:%S\ \%p\")}
          > else
          > set stl=%1*%f%2*\ %h%m%r%0*%=%-14.(%l,%c%V%)%<\ %P\
          > Win%{winnr()}:%{winwidth(0)}x%{winheight(0)}\ %<%{strftime(\"%a\ %b\
          > %d,\ %Y,\ %l:%M:%S\ \%p\")}
          > endif
          >
          > As Tony says, watch for mailer-"beautified" mayhem to the commands
          > above. I use two "custom" colors; they're defined and available
          > in astronaut.vim
          > (http://vim.sourceforge.net/scripts/script.php?script_id=122).
          >
          > Regards,
          > Chip Campbell
          >
          >

          Ok, combining the stuff above, got a little hack.
          http://photos1.blogger.com/blogger/4648/1229/1600/ss.jpg
          The topbar should list all the modifiable buffers( not windows :) )
          An effect simmilar to the one you got when you
          :edit <TAB>
          Something that I've realised, is that the text in statusline could
          not be binded( :map) ?


          --
          Regards, Groleo!

          # touch universe
          # chmod +x universe
          # ./universe
        • Tony Mechelynck
          ... From: Groleo Marius To: Charles E. Campbell, Jr. Cc: Sent: Thursday, September 01, 2005
          Message 4 of 8 , Sep 1 8:39 AM
          • 0 Attachment
            ----- Original Message -----
            From: "Groleo Marius" <groleo@...>
            To: "Charles E. Campbell, Jr." <drchip@...>
            Cc: <vim@...>
            Sent: Thursday, September 01, 2005 4:35 PM
            Subject: Re: Minimum buffer size.
            [...]

            > Something that I've realised, is that the text in statusline could
            > not be binded( :map) ?
            >
            >
            > --
            > Regards, Groleo!

            I'm not sure what you mean by that. It is possible to compute an expression
            in status-line context, and save it in a window-local (or other) variable as
            a side-effect of a function. That variable can then be examined in
            "ordinary" script or command-line context (for instance as a result of a
            mapping). It is also possible to display on the status line anything that
            can be "seen" in the context of that window, for instance a variable which
            is modified as a result of a mapping.

            Best regards,
            Tony.
          Your message has been successfully submitted and would be delivered to recipients shortly.