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

67631Re: New tab visualization

Expand Messages
  • Bram Moolenaar
    Jan 2, 2013
      Andy Spencer wrote:

      > On 2012-12-31 10:22, Kip Coul wrote:
      > > Currently, the visualization of a tab is represented as a first
      > > character followed by as many repetitions of a second character needed
      > > to fill the width (lcs_tab1 and lcs_tab2 in the code, if I'm not
      > > mistaken).
      > >
      > > I'd like to do the opposite, through an option: the first character
      > > repeated plus the second character at the end. That would enable using
      > > arrows ('--->' for 4-space wide tabs).
      > >
      > > What do you think about this? I could add an option such as 'tabview'
      > > which could take two values.
      > I've wanted this before as well.
      > Maybe instead of adding another option you could modify how listchars
      > works? You could use tab:xyz for the left character, the repeated middle
      > character, and the (optional) right character. Then to get an arrow you
      > could use:
      > :set listchars=tab:-->
      > Any existing configurations that use the two character format `tab:xy'
      > would just be a special case and would be equivalent to tab:xyy.

      Instead of changing the meaning of tab: it's probably easier to add
      another item, e.g. rtab:. Or bat: (although most users will miss the
      hint of a reverse tab...).

      hundred-and-one symptoms of being an internet addict:
      227. You sleep next to your monitor. Or on top of it.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      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
    • Show all 8 messages in this topic