mko
mko

Reputation: 22094

How to show the indentation guide line in Vim for editing haml file

The following screenshot is comes from sublime. The guide line is helpful, since haml is an indentation based template engine. Is there anyway to do that?

enter image description here

Upvotes: 2

Views: 4272

Answers (2)

romainl
romainl

Reputation: 196751

There's also :help 'list' and :help 'listchars':

set list
set listchars+=tab:┊\ <-- there's a <Space> after the backslash

but it works only with <Tab>s which may or may not suit your needs.

Upvotes: 2

neevek
neevek

Reputation: 12148

Checkout vim-indent-guides, which provides indentation guides.

Upvotes: 2

Related Questions