4

I use this feature in Geany:

How can I enable it in gvim?

Community
  • 1
  • 1
Pavel Strakhov
  • 39,123
  • 5
  • 88
  • 127
  • 2
    possible duplicate of [Is it possible to display Indentation guides in Vim?](http://stackoverflow.com/questions/2158305/is-it-possible-to-display-indentation-guides-in-vim) – Randy Morris May 19 '11 at 00:28
  • I agree with Randy about possible duplication. Try my little [script](https://gist.github.com/734422) at the end of my [answer](http://stackoverflow.com/questions/2158305/is-it-possible-to-display-indentation-guides-in-vim/2166979#2166979) there, or install heavier [Indent Guides](http://www.vim.org/scripts/script.php?script_id=3361) plugin. – ib. May 19 '11 at 08:26

3 Answers3

2

Have a look at the Indent Guides plugin. It may do what you want.

I personally use SeeTab. It is not suited for persistent indent guides (which I find distracting), but great to selectively toggle on/off to orient yourself.

Jeet
  • 38,594
  • 7
  • 49
  • 56
  • Thank you. I'll try to use Indent Guides plugin with configuration: `let g:indent_guides_enable_on_vim_startup = 1 \n let g:indent_guides_auto_colors = 0 \n autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=#ffffff ctermbg=3 \n autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=#f0f0f0 ctermbg=4` – Pavel Strakhov May 19 '11 at 15:29
0

I don't think it's there, however

  • :se cursorcolumn
  • folding (e.g. se fdm=indent)
  • in combination with zj zk
  • :he %

Are probably going to make life easier for you. You see, I always feel that Vi(m) is less about looking at the screen and more about 'speaking' in object motions, and this is one area where it seems to show

sehe
  • 374,641
  • 47
  • 450
  • 633
0

You could try set listchars=tab:\|\, with a space after that second backslash (Stack Overflow won't show it).

To show what I mean, a full listchars setting might include:

set listchars=tab:\|\ ,trail:·,extends:…,precedes:…,eol:¬.

The | is a non-ideal but functional solution.

mybuddymichael
  • 1,660
  • 16
  • 20