Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Use vim 7.3's unicode+conceal for Perl code
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
after/syntax
README.mkd

README.mkd

Prettify Perl code using Vim 7.3's conceal feature, substituting Unicode characters for some Perl operators.

Turn this:

open my $f, '<', 'README.mkd' or die("Cannot open file: $!");
foreach my $item (@items) { ... }
if ( $a >= 10 ) { ... }
$obj->method();
%a = ( key => 'value', key2 => 'value2' );

Into this:

open my $f, '<', 'README.mkd" ∨ ☠("Cannot open file: $!");
∀ my $item (@items) { ... }
if ( $a ≥ 10 ) { ... }
$obj↦method();
%a = ( key ⇒ 'value', key2 ⇒ 'value2' );

The code is not changed at all: Vim's "conceal" feature simply "hides" these statements when the cursor is not on their line. Text is expanded for the line the cursor is at.

Patches welcome ;)

Something went wrong with that request. Please try again.