Sunday, July 29, 2012

Re: Display more characters as one

But maybe one more question to this topic, though:

Is it possible to create different conceal "classes"? I mean, when I do some syntax mathching with conceal, I have to link the conceal to only one syntax type like this: "hi! link Conceal Operator". But not all things I want to conceal are necessarily opearors. Is there a solution to this?

Jachym

 

On Saturday 28 of July 2012 17:23:49 you wrote:

On Sat, Jul 28, 2012 at 03:32:11AM -0700, jachymb wrote:
> Hello, everybody! This is my first post here.

Welcome ;-)


> I stumbled upon the following feature in the haskell editor "yi", I am
> curious if there is something simillar possible in vim (or a plugin for it).
>
> The idea is quite simple: Display certain character sequences in source code
> as one: for example "->" as "→",  or "forall" as "∀" etc. The important
> thing is that the characters in the edited file are left unchanged, only are
> displayed differently to make the code look nicer and save some space on
> screen.
>
> Is this possible in vim too?

Yes, Vim supports this since 7.3. For more information see:


    :help conceal

The following script looks useful:

    http://www.vim.org/scripts/script.php?script_id=3200

The script contains installation instructions.

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





View this message in context: Re: Display more characters as one
Sent from the Vim - General mailing list archive at Nabble.com.

--
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

No comments: