set vim indent like Notepad++ (attach: screenshot)

253 views
Skip to first unread message

stardiviner

unread,
Feb 22, 2012, 5:36:59 AM2/22/12
to Vim.use.G
I want to set vim indent guide like notepad++. the screenshot is in attachment.
I think *set listchars* maybe work on this.


--
>> stardiviner << =>GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html

2012-02-22-171859_422x309_scrot.png
signature.asc

Marco

unread,
Feb 22, 2012, 5:56:38 AM2/22/12
to vim...@googlegroups.com
On 2012-02-22 stardiviner <numb...@gmail.com> wrote:

> I want to set vim indent guide like notepad++. the screenshot is
> in attachment. I think *set listchars* maybe work on this.

You can use either folds, listchars or both. This setting helps to
achieve something similar:

set list listchars=tab:\‣\

Play with different characters.

Marco


Ivan S. Freitas

unread,
Feb 22, 2012, 12:23:15 PM2/22/12
to vim...@googlegroups.com
> set list listchars=tab:\‣\

That will work only when indenting with tabs (but is good to know
where tabs are). For a more generic approach,
see:
http://www.vim.org/scripts/script.php?script_id=3361

--
Ivan Sichmann Freitas
GNU/Linux user #509059

Charles Campbell

unread,
Feb 22, 2012, 12:49:06 PM2/22/12
to vim...@googlegroups.com
stardiviner wrote:
> I want to set vim indent guide like notepad++. the screenshot is in attachment.
> I think *set listchars* maybe work on this.
>
>
Try my IndGuide plugin
(http://drchip.0sites.net/astronaut/vim/index.html#INDGUIDE).

You need to have a "huge" vim (ie. to have signs enabled).

Regards,
C Campbell

sc

unread,
Feb 22, 2012, 12:58:24 PM2/22/12
to vim...@googlegroups.com

actually, Big includes signs

sc

Marco

unread,
Feb 22, 2012, 1:11:19 PM2/22/12
to vim...@googlegroups.com
On 2012-02-22 sc <toot...@swbell.net> wrote:

> On Wed, Feb 22, 2012 at 12:49:06PM -0500, Charles Campbell wrote:
> > stardiviner wrote:
> > >I want to set vim indent guide like notepad++. the screenshot is in
> > >attachment. I think *set listchars* maybe work on this.
> > >
> > Try my IndGuide plugin
> > (http://drchip.0sites.net/astronaut/vim/index.html#INDGUIDE).

The manual links to a 404.

Marco


stardiviner

unread,
Feb 22, 2012, 1:13:25 PM2/22/12
to vim...@googlegroups.com
=> On [2012-02-22 12:49:06 -0500]:

Charles Campbell Said:
> stardiviner wrote:
> >I want to set vim indent guide like notepad++. the screenshot is in attachment.
> >I think *set listchars* maybe work on this.
> >
> Try my IndGuide plugin
> (http://drchip.0sites.net/astronaut/vim/index.html#INDGUIDE).
>
I tried this plugin, but the indent lines are before linenumber.

> You need to have a "huge" vim (ie. to have signs enabled).
>
> Regards,
> C Campbell
>
> --
> 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
signature.asc

stardiviner

unread,
Feb 22, 2012, 1:15:42 PM2/22/12
to vim...@googlegroups.com
=> On [2012-02-22 15:23:15 -0200]:

Ivan S. Freitas Said:
> > set list listchars=tab:\‣\
>
> That will work only when indenting with tabs (but is good to know
> where tabs are). For a more generic approach,
> see:
> http://www.vim.org/scripts/script.php?script_id=3361
I already has this plugin, but I do not know how to config it to make it similar with Notepad++'s
indent guide.

>
> --
> Ivan Sichmann Freitas
> GNU/Linux user #509059
>
> --
> 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
>

--

signature.asc

Christian Brabandt

unread,
Feb 22, 2012, 4:06:50 PM2/22/12
to Vim.use.G
Hi stardiviner!

On Mi, 22 Feb 2012, stardiviner wrote:

> I want to set vim indent guide like notepad++. the screenshot is in
> attachment. I think *set listchars* maybe work on this.

I don't know what exactly you want, but do you possibly want to set
'foldcolumn'?
e.g. something like this:
:set fdc=5 fdm=indent foldlevel=99 foldlevelstart=99


regards,
Christian

Christian Brabandt

unread,
Feb 22, 2012, 4:07:48 PM2/22/12
to vim...@googlegroups.com
Hi stardiviner!

On Do, 23 Feb 2012, stardiviner wrote:

> => On [2012-02-22 12:49:06 -0500]:
> Charles Campbell Said:
> > stardiviner wrote:
> > >I want to set vim indent guide like notepad++. the screenshot is in attachment.
> > >I think *set listchars* maybe work on this.
> > >
> > Try my IndGuide plugin
> > (http://drchip.0sites.net/astronaut/vim/index.html#INDGUIDE).
> >
> I tried this plugin, but the indent lines are before linenumber.

This can't be changed,without heavily patching Vim. May be you want to
continue using notepad++ after all?

Mit freundlichen Gr��en
Christian
--
Die Menschen mu� man vor den Kopf sto�en, damit sie lernen, ihn zu
gebrauchen.
-- Dieter Hildebrandt

Taylor Hedberg

unread,
Feb 22, 2012, 4:42:45 PM2/22/12
to Vim.use.G
signature.asc

Charles Campbell

unread,
Feb 22, 2012, 4:55:17 PM2/22/12
to vim...@googlegroups.com
Ivan S. Freitas mentioned it earlier in the thread.

Regards,
Chip Campbell

Charles Campbell

unread,
Feb 22, 2012, 4:57:24 PM2/22/12
to vim...@googlegroups.com
(sorry if this message is a duplicate, but it hasn't appeared for awhile)

Thank you for letting me know -- I modified my RltvNmbr plugin, and
hadn't made an IndGuide manual yet. There's one there now.

Also, there was a bug where :IG would make indentation signs, but the
second :IG wouldn't. Fixed.

Regards,
Chip Campbell

Taylor Hedberg

unread,
Feb 22, 2012, 5:12:55 PM2/22/12
to vim...@googlegroups.com
Charles Campbell, Wed 2012-02-22 @ 16:55:17-0500:

My mistake, sorry for the noise.

signature.asc

sc

unread,
Feb 22, 2012, 1:47:52 PM2/22/12
to vim...@googlegroups.com

the link worked for me...

sc

Charles Campbell

unread,
Feb 22, 2012, 4:40:59 PM2/22/12
to vim...@googlegroups.com
Hello,

Thank you -- I essentially converted my RltvNmbr plugin into IndGuide,
and hadn't come up with a manual yet. There's one there now.

Also, :IG would start up signs, but the second :IG wasn't removing
them. FIxed.

Regards,
Chip Campbell

Charles Campbell

unread,
Feb 22, 2012, 3:50:39 PM2/22/12
to vim...@googlegroups.com
stardiviner wrote:
> => On [2012-02-22 12:49:06 -0500]:
> Charles Campbell Said:
>
>> stardiviner wrote:
>>
>>> I want to set vim indent guide like notepad++. the screenshot is in attachment.
>>> I think *set listchars* maybe work on this.
>>>
>>>
>> Try my IndGuide plugin
>> (http://drchip.0sites.net/astronaut/vim/index.html#INDGUIDE).
>>
>>
> I tried this plugin, but the indent lines are before linenumber.
>
There's nothing that can be done about that; line numbers and signs
screenspace is set up by vim, and I know of no way to shuffle them about.

Regards,
C Campbell

Charles Campbell

unread,
Feb 22, 2012, 5:19:25 PM2/22/12
to vim...@googlegroups.com
True; the only thing that huge has that big doesn't AFAIK is profiling
support.

Regards,
Chip Campbell

Marco

unread,
Feb 22, 2012, 5:30:53 PM2/22/12
to vim...@googlegroups.com
On 2012-02-22 Christian Brabandt <cbl...@256bit.org> wrote:

> I don't know what exactly you want, but do you possibly want to set
> 'foldcolumn'?
> e.g. something like this:
> :set fdc=5 fdm=indent foldlevel=99 foldlevelstart=99

That looks pretty slick! However, it wastes a tremendous amount of screen
space.

Marco


stardiviner

unread,
Feb 23, 2012, 1:02:11 AM2/23/12
to vim...@googlegroups.com
=> On [2012-02-22 22:07:48 +0100]:

Christian Brabandt Said:
> Hi stardiviner!
>
> On Do, 23 Feb 2012, stardiviner wrote:
>
> > => On [2012-02-22 12:49:06 -0500]:
> > Charles Campbell Said:
> > > stardiviner wrote:
> > > >I want to set vim indent guide like notepad++. the screenshot is in attachment.
> > > >I think *set listchars* maybe work on this.
> > > >
> > > Try my IndGuide plugin
> > > (http://drchip.0sites.net/astronaut/vim/index.html#INDGUIDE).
> > >
> > I tried this plugin, but the indent lines are before linenumber.
>
> This can't be changed,without heavily patching Vim. May be you want to
> continue using notepad++ after all?
Em, ok. wait for someday Vim has this feature (maybe not).
stay at Vim forever. I like it. That's why I ask it at here.
>
> Mit freundlichen Grüßen
> Christian
> --
> Die Menschen muß man vor den Kopf stoßen, damit sie lernen, ihn zu
> gebrauchen.
> -- Dieter Hildebrandt
>
Reply all
Reply to author
Forward
0 new messages