On Fri, 21 May 2010, Andy Christianson wrote:

> Is it possible to get Vim to display vertical lines that help to track 
> indentation? I can't think of the best way to describe it (or search 
> for it), but you can see it in this screenshot
> (http://www.rutherfurd.net/files/jedit/jedit_ss3.jpg).

If you always use tabs to indent, you might try playing with 'listchars' 
(= 'lcs').  The results of:

:set lcs=tab:|·

shows up pretty close to your screenshot for me.  The difference is that 
a tab shows up as |··· (instead of ···· with a vertical line 
interleaved)

Instead of '|' (VERTICAL LINE (aka 'pipe')), if your preferred font 
supports it, I like U+2502 '│' (BOX DRAWINGS LIGHT VERTICAL).  
(Vertically-aligned │'s are flush with one another.  Compare:)
│││ |||
│││ |||
│││ |||

:set lcs=tab:│·

At work, where I pay more attention to tabs, I use:

:set lcs=tab:»·

(At home, I always use tabs, so I find that distracting)

In all cases, I also use the 'trail:·' suboption, but see :help 
'listchars' for more.  You also need the 'list' option active.

-- 
Best,
Ben

-- 
You received this message from the "vim_use" 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

Reply via email to