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

Re: New feature: cursor at the beginning of tab character in normal mode

Expand Messages
  • Richard Hartmann
    ... Agreed. But havin it _somewhere_ is better than nowhere. ... As this is a UI thing and quite basic, I am willing to bet that it will work everywhere. ...
    Message 1 of 10 , Oct 6, 2008
    • 0 Attachment
      2008/10/6 Vladimir A. Pavlov <pv4@...>:

      > 1. it would be difficult for a novice who came from another editor
      > to find that place and he/she won't probably find the solution of
      > the problem. Are there better places?

      Agreed. But havin it _somewhere_ is better than nowhere.


      > 2. is the solution in question correct on all platforms/terminals so
      > that we are allowed to add such a comment to the help file? It
      > works on x86 and x86_64 in xterm and linux terminals but what
      > about others?

      As this is a UI thing and quite basic, I am willing to bet that it will
      work everywhere.


      > Bram, would you?

      He is on holidays, don't expect a quick answer.
      Richard

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Tony Mechelynck
      ... What about under either or both of :help list and :help listchars instead? Wouldn t that be more discoverable ? (And ├żese options are referenced
      Message 2 of 10 , Oct 7, 2008
      • 0 Attachment
        On 06/10/08 21:38, Vladimir A. Pavlov wrote:
        > On Sat, 4 Oct 2008 at 02:37 Richard Hartmann wrote:
        >> I would suggest adapting the helpfiles to reflect the above, though.
        >
        > I found the section called "VIEWING TABS" in the chapter 05.7 of the
        > standard vim manual. It contains the following:
        >
        >> :set listchars=tab:>-,trail:-
        >
        > with the explanation what the setting does. However there is no
        > word concerning cursor position there. That chapter seems to be the
        > best place to write how to emulate the "standard" cursor behaviour
        > in vim. But:
        > 1. it would be difficult for a novice who came from another editor
        > to find that place and he/she won't probably find the solution of
        > the problem. Are there better places?

        What about under either or both of ":help 'list'" and ":help
        'listchars'" instead? Wouldn't that be more "discoverable"? (And ├żese
        options are referenced from that 05.7 section.)

        > 2. is the solution in question correct on all platforms/terminals so
        > that we are allowed to add such a comment to the help file? It
        > works on x86 and x86_64 in xterm and linux terminals but what
        > about others?

        It works the same way in the GTK2 GUI, and I don't see why it wouldn't
        work the same way in other cases, including not only other Linux GUIs
        and terminals, but also Windows, Mac, Amiga, VMS, whatever...

        >
        >> Vladimir, I suspect Bram would accept a patch against the help.
        >
        > Bram, would you?
        >
        > --
        > Vladimir

        Best regards,
        Tony.
        --
        Please, won't somebody tell me what diddie-wa-diddie means?

        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_dev" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Vladimir A. Pavlov
        Hi! I made a patch to the documentation to mention the way to display the cursor where most popular editors do. I mention the cursor positioning behaviour in
        Message 3 of 10 , Nov 2, 2008
        • 0 Attachment
          Hi!

          I made a patch to the documentation to mention the way to
          display the cursor where most popular editors do.

          I mention the cursor positioning behaviour in 'list' help node,
          put the command in question there and made a link from 'listchars'
          node to 'list' one.

          I think it's better to put the command in question to 'list'
          help node since it's 'list' (not, 'listchars') option's issue
          that allows us to do what we want.

          P.S. Sorry for being so late, I've been busy this month :(

          --
          Vladimir

          The patch follows (should be applied to just unpacked
          vim-7.2.tar.bz2):

          diff -Naur vim72.orig/runtime/doc/options.txt vim72/runtime/doc/options.txt
          --- vim72.orig/runtime/doc/options.txt 2008-08-09 18:22:59.000000000 +0400
          +++ vim72/runtime/doc/options.txt 2008-11-02 13:45:41.000000000 +0300
          @@ -4331,6 +4331,18 @@
          'wrapmargin') when 'cpoptions' includes 'L'. See 'listchars' for
          changing the way tabs are displayed.

          + In Normal mode the cursor is displayed at the end of the space a tab
          + character occupies. In List mode it's displayed at the beginning of
          + the space while vim behaves similarly to Normal mode.
          +
          + This can be used to make vim display the cursor in Normal mode at the
          + beginning of the space a tab character occupies as it does in Insert
          + mode and as other popular text editors do.
          +
          + The following command does this: >
          + :set list lcs=tab:\ \
          +< Note a space following the second baskslash.
          +
          *'listchars'* *'lcs'*
          'listchars' 'lcs' string (default "eol:$")
          global
          @@ -4368,6 +4380,11 @@
          "precedes". "SpecialKey" for "nbsp", "tab" and "trail".
          |hl-NonText| |hl-SpecialKey|

          + Another probable usage for 'lcs' option is to make vim display the
          + cursor in Normal mode at the beginning of the space a tab character
          + occupies as it does in Insert mode and as other popular text editors
          + do. See |'list'| for details.
          +
          *'lpl'* *'nolpl'* *'loadplugins'* *'noloadplugins'*
          'loadplugins' 'lpl' boolean (default on)
          global


          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_dev" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        Your message has been successfully submitted and would be delivered to recipients shortly.