Vivek Kumar
Vivek Kumar

Reputation: 5040

Plugin name for showing indentation guide in gVim

Anybody, any idea??

which plugin is showing the indentation guide in the image below. Downloaded from http://leetless.de/images/vim/pyte.png

enter image description here

Vertical indent guide marked with Black lines.png

Thanks

Upvotes: 1

Views: 456

Answers (4)

trusktr
trusktr

Reputation: 45494

Here's a nice plugin for vim: https://github.com/Yggdroot/indentLine

Upvotes: 0

Mohammed
Mohammed

Reputation: 1052

There's also a plugin, vim-indent-guides

Upvotes: 0

romainl
romainl

Reputation: 196751

A similar effect could be achieved with:

set list
set listchars+=tab:\│┈

Maybe with another filler character.

See :help 'list' and :help 'listchars'.

But…

As I was writing that answer it appeared to me that the answer was probably in the colorscheme's author's ~/.vimrc.

I think that you should really work on sharpening your deduction skills. It takes about 30 seconds to 1 minute to find that information by yourself:

  1. Go to the site where you get that pic from: http://leetless.de

  2. Look around for something Vim-related. The navigation is generally the first place to go and what do you find? "Vim themes" at http://leetless.de/vim.html

  3. That image illustrates the first "theme" featured, that's a good sign. But let's read the introduction text (emphasis mine, typos his):

    If you are curious what some other things are (like the indetation markers) and how they work, take a look at my .vimrc. Note that the encoding is broken with that file so the "set lcs" part is probably not copy-pasteable, follow the instructions in the comments above that line in order to find out how you can make your own unicode-lcs.

    Wow! It looks like you are getting closer to the truth. Beware of the Cigarette Man!

  4. Follow the link and do a search for lcs.

  5. Done.

Upvotes: 2

qqx
qqx

Reputation: 19475

Not sure what you mean by "indentation guide", but I don't think any plugin is involved.

The first thing I see that you might be referring to is the characters at the beginning of lines indicating where there are tabs. That can be done by doing setting the listchars option to an appropriate value, turning the list option on, and selecting a color for the SpecialKey highlight group.

The other thing you might be referring to is highlighting of the column that currently contains the cursor. That can be done by turning on the cursorcolumn option. The color used for that can be set with the CursorColumn highlight group.

Upvotes: 0

Related Questions