Minimap in VIM ?

1,218 views
Skip to first unread message

Patrick Allaire

unread,
Oct 16, 2009, 12:43:32 PM10/16/09
to vim...@googlegroups.com
 
Hello 

I like the new feature of SublimeText ( http://www.sublimetext.com/ ) of showing a minimap of you document. I usually find my code by its look and format. I think it could be great to have.

Is it doable in VIM ? A split windows of the text with font size 1 may be !?!?


--
Patrick Allaire
Lache le Brake, et penche le bike !!!!

Simon Ruderich

unread,
Oct 16, 2009, 7:32:10 PM10/16/09
to vim...@googlegroups.com
On Fri, Oct 16, 2009 at 12:43:32PM -0400, Patrick Allaire wrote:
> Hello
>
> I like the new feature of SublimeText ( http://www.sublimetext.com/ ) of
> showing a minimap of you document. I usually find my code by its look and
> format. I think it could be great to have.
>
> Is it doable in VIM ? A split windows of the text with font size 1 may be
> !?!?

Hi Patrick,

This isn't possible in Vim as the console version can't reduce
the font size. As console and graphical versions are linked I
doubt it's possible in GVim.

Simon
--
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

signature.asc

Christian Brabandt

unread,
Oct 17, 2009, 7:37:12 AM10/17/09
to vim...@googlegroups.com
Hi Simon!

On Sa, 17 Okt 2009, Simon Ruderich wrote:

> On Fri, Oct 16, 2009 at 12:43:32PM -0400, Patrick Allaire wrote:
> > Is it doable in VIM ? A split windows of the text with font size 1 may be
> > !?!?
>

> This isn't possible in Vim as the console version can't reduce
> the font size. As console and graphical versions are linked I
> doubt it's possible in GVim.

I don't think it is possible in Gvim either, since guifont is a global
setting.


regards,
Christian
--
:wq

pallaire

unread,
Oct 17, 2009, 4:22:23 PM10/17/09
to vim_use
Hello

Could we write a plugin ? I dont know the architecture of VIM if it
supports plugin or not !?!

They have done it in Emacs ;) then we have to find a way :
http://www.emacswiki.org/emacs/MiniMap

[p]

John Beckett

unread,
Oct 17, 2009, 8:39:09 PM10/17/09
to vim...@googlegroups.com
Please bottom post on this list. Quote a small (relevant) part
of the message you are replying to, and put your text underneath.

See the list guidelines:
http://groups.google.com/group/vim_use/web/vim-information

Jason Axelson

unread,
Oct 18, 2009, 5:23:41 AM10/18/09
to vim_use
On Oct 16, 6:43 am, Patrick Allaire <patr...@pallaire.com> wrote:
> Hello
>
> I like the new feature of SublimeText (http://www.sublimetext.com/) of
> showing a minimap of you document. I usually find my code by its look and
> format. I think it could be great to have.
>
> Is it doable in VIM ? A split windows of the text with font size 1 may be
> !?!?

Does anyone know if SublimeText actually uses a low resolution font or
if it actually renders it as a picture and then shrinks it down? Does
it really make much of a difference? I know that the Emacs
implementation just uses a small font.

Jason

Tom Link

unread,
Oct 18, 2009, 7:27:59 AM10/18/09
to vim_use
> I like the new feature of SublimeText (http://www.sublimetext.com/) of
> showing a minimap of you document. I usually find my code by its look and
> format. I think it could be great to have.

The first editor I used that had such a minimap feature was pipedream
on a z88 and I'd be surprised if Sinclair invented those minimaps. So
the question is why in 20+ years wasn't that feature widely adopted?
IMHO an outline view of the document structure is more useful.

Nicolas Aggelidis

unread,
Oct 19, 2009, 7:30:40 PM10/19/09
to vim...@googlegroups.com
> Could we write a plugin ? I dont know the architecture of VIM if it
> supports plugin or not !?!
>
> They have done it in Emacs ;) then we have to find a way :
> http://www.emacswiki.org/emacs/MiniMap
>


wow! sublime minimap looks great!

Tony Mechelynck

unread,
Nov 15, 2009, 5:10:22 PM11/15/09
to vim...@googlegroups.com, pallaire
On 17/10/09 22:22, pallaire wrote:
>
> Hello
>
> Could we write a plugin ? I dont know the architecture of VIM if it
> supports plugin or not !?!

Vim supports plugins written in vim-script language (basically the same
language as the ex-commands you type after hitting the colon key). That
language is wonderfully supple and powerful for _text_ editing purposes
but it doesn't support pictures and it doesn't support having
different-size fonts at different places of the Vim screen (not
including, in gvim, the menu font and the tooltip font, which are
handled by the OS). If you want a 1px font, you can have it, but then
_all_ of gvim will render _all_ your text in _all_ your split windows in
a 1px font size, which I doubt you would find useful for editing.

>
> They have done it in Emacs ;) then we have to find a way :
> http://www.emacswiki.org/emacs/MiniMap

Maybe Emacs does it, that doesn't mean we have to ape it. Emacs can host
a shell in a split-window, Bram has firmly set his foot down, and
mainline Vim shall never do that. Emacs may include everything and the
kitchen sink, Vim doesn't, but you can clean yours with it.


Best regards,
Tony.
--
There once was a man named Eugene
Who invented a screwing machine
Concave and convex
It served either sex
And it played with itself in between.

Nicolas Aggelidis

unread,
Nov 16, 2009, 8:16:39 PM11/16/09
to vim...@googlegroups.com
On Mon, Nov 16, 2009 at 12:10 AM, Tony Mechelynck
<antoine.m...@gmail.com> wrote:
>
> Maybe Emacs does it, that doesn't mean we have to ape it. Emacs can host
> a shell in a split-window, Bram has firmly set his foot down, and
> mainline Vim shall never do that. Emacs may include everything and the
> kitchen sink, Vim doesn't, but you can clean yours with it.
>
>
> Best regards,
> Tony.
> --
hello Tony,

Thats true! but that doesn't mean that we shouldn't consider
interesting features... imho a minimap-like feature is really useful
in some cases! That along with some other
"gui features" like the indent guidelines of notepad++ (see
http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_braceIndentGuideHiLiting.gif
).

To have these features either your scripting language must support
them or they can come in the mainline.

I mention all the above in good spirit! i am thankful for the vim
editor just as it is! (although i would prefer to have features like
minimap)


best regards,
nicolas

Reply all
Reply to author
Forward
0 new messages