how to draw <Bar> on each 4th space

Posted by Milan Leszkow on Stack Overflow See other posts from Stack Overflow or by Milan Leszkow
Published on 2010-02-02T09:49:41Z Indexed on 2010/04/04 6:03 UTC
Read the original article Hit count: 298

Filed under:
|
|
|

I'd like (g)vim to draw pipe symbol '|' on each 4th space of indentation to show something like vertical indentation line.

I found this plugin: http://vim.sourceforge.net/scripts/script.php?script_id=628

but it works only for 'tab'. I'm using spaces instead of the tabs.

My .vimrc contains:

set ts=4 set sw=4 set expandtab set softtabstop=4

Thanks for help

© Stack Overflow or respective owner

Related posts about vim

Related posts about gvim