Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode mathematical notation using conceal #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ppvg
Copy link

@ppvg ppvg commented Feb 8, 2013

Inspired by (and based on) vim-cute-python.

After enabling g:coffee_cute, certain keywords are replaced with their equivalent mathematical notation (such as ∈, ∧ and ∨) and function arrows are converted to unicode as well.

CoffeeScript is pretty terse already, so I doubt anyone will use this, but it's a nice showcase of conceal, don't you think?

Replaces certains keywords with their equivalent mathematical notation,
such as ∈, ∧ and ∨, as well as UTF-8 arrow symbols for functions.

To enable, put 'let g:coffee_cute = 1' in your .vimrc.
Vim 7.3 (with "conceal" enabled) is required.
@michaelficarra
Copy link

I like it, other than the places that have provisions for is not, which is not a special production in CoffeeScript. Those should be removed.

Related: jashkenas/coffeescript#1679

@sethwoodworth
Copy link

I think this is a great feature. I use and contribute to vim-cute-python. But in the interests of separating code, I think this should be a distinct vim plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants