Sunday, July 4, 2010

Re: Fwd: Indentation Vertical Lines

On 21/05/10 16:01, 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).

In addition to what was said about 'list' and 'listchars', to track
indentation you could also use the 'cursorcolumn' option, see

:help 'cursorcolumn'
:help 'cursorline'
:help hl-CursorColumn
:help hl-CursorLine

Personally I use

set cuc cul

in my vimrc, and

hi CursorColumn term=underline cterm=underline guibg=#F4F4F4
hi! link CursorLine CursorColumn

in my homemade colorscheme (a very light grey in the GUI so as to be
visible but not too distracting on a white field).


Best regards,
Tony.
--
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
-- Isaac Asimov

--
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

No comments: