sponsor Vim development Vim logo Vim Book Ad

js-mask : More concise JavaScript using Vim's "conceal" feature

 script karma  Rating 1/3, Downloaded by 776  Comments, bugs, improvements  Vim wiki

created by
Mohammad Satrio
 
script type
syntax
 
description
js-mask: Give Your JavaScript A Beautiful Mask So It Wouldn't Look Ugly
=======================================================================

A Vim plugin that makes your javascripts look more concise. The original intention is to make anonymous function less verbose and easier to understand at a glance. Requires Vim at least version 7.3.

Before:
    function Add(b, c) { return b + c; };
    setTimeout(function() { console.log("wooot") }, 10);

After:
    𝑓 Add(b, c) { return b + c; };
    setTimeout(𝑓 { console.log("wooot") }, 10);

That's it. Check https://github.com/tyok/js-mask/blob/master/README.markdown for more docs.

Feel free to suggest additions and improvements via https://github.com/tyok/js-mask/issues. Or you can fork this from https://github.com/tyok/js-mask and add your own very personalized flavor.

Inspired by https://github.com/ehamberg/vim-cute-python which, in turn, is inspired by vimscript#3200.
 
install details
Extract the tar.gz to ~/.vim folder.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
js-mask-0.1.tar.gz 0.1 2010-11-15 7.3 Mohammad Satrio Previous: "function()" wrap to "𝑓 ()"
Now: "function()" wrap to just "𝑓 "
js-mask.tar.gz 0.0 2010-11-14 7.3 Mohammad Satrio Initial upload
ip used for rating: 54.162.130.75

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github