• Stars
    star
    283
  • Rank 146,066 (Top 3 %)
  • Language
    Vim Script
  • Created about 14 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Unicode goodness for Python code using vim's “conceal” feature

This syntax file displays unicode characters for some Python operators and built-in functions, turning the following:

    map (lambda x: x, [1,2,3])

    def foo(e, a):
        if e in [1,2,3] and not a:
            return math.sqrt(math.pi)
        else:
            return sum([1,2,3])

into

    map (λ x: x, [1,2,3])

    def foo(e, a):
        if e ∈ [1,2,3] ∧ ¬a:
            return √(π)
        else:
            return ∑([1,2,3])

Screenshot:

This does not – at any point – alter your source code. It simply uses Vim's "conceal" feature to “hide” in behind , etc. Whenever the cursor is at a line with concealed text, the text will be expanded.

To install, simply put python.vim in ~/.vim/after/syntax or use a plug-in manager such as vim-plug or pathogen.vim.

Vim ≥ 7.3 is required.

The branch moresymbols includes commits from various people that add even more conceal replacements. I try to maintain a healthy balance in the master branch, but if you like to conceal even more operators or don't mind slight inaccuracies in what mathematical symbols are used to represent, you should have a look at the extra symbols in the moresymbols branch.

This plug-in is very much inspired by http://github.com/Twinside/vim-haskellConceal

More Repositories

1

9m

9m Unicode URL Shortener
Haskell
203
star
2

typeclassopedia-md

Markdown version of the Haskell Typeclassopedia
Makefile
37
star
3

gtdguide

A simple, pragmatic guide to the GTD method
CSS
32
star
4

simple-gitbot

IRC bot for announcing commits pushed to a git repository
Ruby
21
star
5

fswatcher

A simple file/directory watcher for Linux and macOS and other BSDs
Haskell
12
star
6

tribot

Simple, stupid trigram-using, nonsense-spewing irc bot
Haskell
8
star
7

simpleea

A simple evolutionary algorithm framework for Haskell
Haskell
7
star
8

rssqueue

RSSQueue.com – Create and curate your own RSS/podcast feeds to create a “watch it later” list for your phone or tablet
Haskell
5
star
9

scotty-rest

Webmachine-style REST library for scotty inspired by cowboy
Haskell
5
star
10

phyloea

C++
2
star
11

ehamberg.github.com

2
star
12

simdist

Mirror of simdist by Boye H
C++
2
star
13

xl04_invite

An old invtro to the Xenox XL 04 party [Norwegian] – music by kenet
C
2
star
14

blog

My personal blog
HTML
2
star
15

haskellmode-vim

git mirror of haskellmode-vim
Vim Script
2
star
16

zsh-cabal-completion

ZSH plugin for tab completion of `cabal` commands
Shell
1
star
17

jff-softword-linux

Linux port of JFF's demo “Softworld”
C
1
star
18

vim-cute-erlang

Unicode goodness for Erlang source code, using Vim's conceal feature
Vim Script
1
star
19

zsh-vim-mode

Friendly vim mode for zsh
Shell
1
star
20

karabiner-profile-switcher

macOS agent for automatically switching between karabiner elements profiles when a USB keyboard is attached
Swift
1
star
21

GCal-Coming

Plasmoid showing your upcoming events from Google Calendar
Python
1
star
22

hrtm

Haskell
1
star
23

ce-scores-server

Haskell
1
star
24

game-of-life

Haskell implementation of Conway’s Game of Life
Haskell
1
star
25

tapl-haskell-untyped

Haskell implementation of the untyped lambda calculus from TAPL chapter 7
Haskell
1
star