52248Re: New feature: cursor at the beginning of tab character in normal mode
- Nov 2, 2008Hi!
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 :(
The patch follows (should be applied to just unpacked
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' string (default "eol:$")
@@ -4368,6 +4380,11 @@
"precedes". "SpecialKey" for "nbsp", "tab" and "trail".
+ 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)
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic