Skip to content

Instantly share code, notes, and snippets.

@teramako
Created April 18, 2012 11:21
Show Gist options
  • Save teramako/2412969 to your computer and use it in GitHub Desktop.
Save teramako/2412969 to your computer and use it in GitHub Desktop.
Vimperator這いよる混沌
var U_NYA_ = {
fields: [
"(\u300d\u30fb\u03c9\u30fb)\u300d\u3046\u30fc\uff01\u3000",
"(\uff0f\u30fb\u03c9\u30fb)\uff0f\u306b\u3083\u30fc\uff01",
"(\u300d\u30fb\u03c9\u30fb)\u300d\u3046\u30fc\uff01\u3000",
"(\uff0f\u30fb\u03c9\u30fb)\uff0f\u306b\u3083\u30fc\uff01",
"(\u300d\u30fb\u03c9\u30fb)\u300d\u3046\u30fc\uff01\u3000",
"(\uff0f\u30fb\u03c9\u30fb)\uff0f\u306b\u3083\u30fc\uff01",
"Let's\uff3c(\u30fb\u03c9\u30fb)\uff0f\u306b\u3083\u30fc\uff01"
],
index: 0,
get: function() {
if (this.index === 7)
this.index = 0;
return this.fields[this.index++];
}
};
Object.defineProperty(statusline._statusfields, "unya", {
enumerable: true,
configurable: true,
get: function() {
return U_NYA_.get();
}
});
(function init() {
var statuses = options.get("status").values;
if (statuses.indexOf("unya") === -1)
options.status = statuses.concat(["unya"]).join(",");
}());
function onUnload () {
delete statusline._statusfields.unya;
var statuses = options.get("status").values;
if (statuses.indexOf("unya") !== -1)
options.status = statuses.filter(function(st) st !== "unya").join(",");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment