Skip to content

Instantly share code, notes, and snippets.

@BenjaminRH
BenjaminRH / README.md
Created April 2, 2017 17:59 — forked from csswizardry/README.md
Vim without NERD tree or CtrlP

Vim without NERD tree or CtrlP

I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.

Fuzzy Search

There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:

:vsp **/*<partial file name><Tab>
// ==UserScript==
// @id 987654321
// @name KickAss Torrents Proxify
// @version 1.0
// @description Redirects you to a KickAss Torrents proxy
// @run-at document-start
// @match *.kickass.to/*
// @match *.kat.ph/*
// ==/UserScript==
// ==UserScript==
// @id 987654321
// @name Kickasstorrents
// @version 1.0
// @namespace
// @author
// @description
// @run-at document-end
// @match http://*.kickass.to/*
// @match http://*.kat.ph/*
Meteor.Router.add({
'/': {
to: 'index',
and: function () {
Session.set('genre', null);
}
}, // site index
'/:action/:action2/:action3': function (action, action2, action3) {
var genreSession = null,
@BenjaminRH
BenjaminRH / queue.coffee
Last active December 21, 2015 14:18 — forked from svasva/queue.coffee
@Queue = new Meteor.Collection 'queue'
Meteor.startup ->
Meteor._processQueue = ->
if Meteor._queueProcessing ||= false
Meteor.setTimeout Meteor._processQueue, 100
return
Meteor._queueProcessing = true
qsize = Meteor._queue.length
qdone = 0
Template.admin.events =
"click #createPost": () ->
Meteor.render(() ->
"{{> create_news_post}}"
)
client.addListener('PING', function() {
Fiber(function() {
client.send('PONG');
}).run();
});
<head>
<title>Title</title>
<meta charset="utf-8">
<meta name="robots" content="all">
</head>
<body>
{{> nav_header}}
{{> index}}
</body>
if (Meteor.isClient) {
function updateHTML(elmId, value) {
document.getElementById(elmId).innerHTML = value;
}
// This function is called when an error is thrown by the player
function onPlayerError(errorCode) {
alert("An error occured of type:" + errorCode);
}
// Client
Meteor.subscribe('todos');