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

Re: statusbar width with multibyte characters in it

Expand Messages
  • Daniel Albuschat
    ... I think I got it wrong. It s the ruler, not the statusline: set ruler set rulerformat=%55(%{strftime( %a %b %e %I:%M %p )} %5L,%-6(%c%V%) %P%) When I
    Message 1 of 5 , Dec 16, 2005
    • 0 Attachment
      2005/12/16, Matsumoto Yasuhiro <mattn_jp@...>:
      > I don't see this wrong behavior in vim7 cvs-head on my linux.
      > (If you use old FreeBSD, some mb* or wc* functions in libc have a bug)
      >
      > I tried following setting.
      > :set statusline=%<%f\ %m%r%h%w%{''.strftime('%c').''}%=%l,%c%V%8P
      > but it seems ok to me.

      I think I got it wrong. It's the ruler, not the statusline:
      set ruler
      set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5L,%-6(%c%V%)\ %P%)

      When I change ruler not to include the time, it's okay.
      statusline is not set at all (:set statusline yields " statusline=").

      --
      eat(this); // delicious suicide
    • Bram Moolenaar
      ... This still works OK for me, although 55 is very wide and there is lots of room on the right. Perhaps your fillchars option is part of the problem? -- An
      Message 2 of 5 , Dec 16, 2005
      • 0 Attachment
        Daniel Albuschat wrote:

        > 2005/12/16, Matsumoto Yasuhiro <mattn_jp@...>:
        > > I don't see this wrong behavior in vim7 cvs-head on my linux.
        > > (If you use old FreeBSD, some mb* or wc* functions in libc have a bug)
        > >
        > > I tried following setting.
        > > :set statusline=%<%f\ %m%r%h%w%{''.strftime('%c').''}%=%l,%c%V%8P
        > > but it seems ok to me.
        >
        > I think I got it wrong. It's the ruler, not the statusline:
        > set ruler
        > set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5L,%-6(%c%V%)\ %P%)
        >
        > When I change ruler not to include the time, it's okay.
        > statusline is not set at all (:set statusline yields " statusline=").

        This still works OK for me, although 55 is very wide and there is lots
        of room on the right.

        Perhaps your 'fillchars' option is part of the problem?

        --
        An indication you must be a manager:
        You believe you never have any problems in your life, just
        "issues" and "improvement opportunities".

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ download, build and distribute -- http://www.A-A-P.org ///
        \\\ help me help AIDS victims -- http://www.ICCF.nl ///
      Your message has been successfully submitted and would be delivered to recipients shortly.