This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^[[36m-- SYNTAX PROBLEM - /var/folders/rc/yr76zbp97nn03xncbwbx05jw0000gn/T/nvimGL5Ztr/1.el | |
Processing file /var/folders/rc/owing things:sing your code! | |
ERRORSp97nn03xncbwbx05jw0000gn/T/nvimGL5Ztr/1.elm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! HighlightCurrent() | |
let pathlist = split(expand('%'), '/') | |
exec "Explore " . getcwd() | |
while 1 | |
let elem = remove(pathlist, 0) | |
if !search(elem, 'W') | |
break | |
endif | |
if !empty(pathlist) | |
exec "normal \<CR>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2015 by Israel Chauca F. <[email protected]> | |
# Copyright (c) 2014 by Filip H.F. "FiXato" Slagter <[email protected]> | |
# | |
# Naughty: a quick WeeChat script to mark users as "naughty" and display a | |
# warning behind what they post. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set foo bar | |
if set -q foo | |
echo \ | |
continued\ | |
lines | |
end | |
switch $foo | |
case 'abc' | |
echo 14 | |
case 'def' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set foo bar | |
if set -q foo | |
echo \ | |
continued\ | |
lines | |
end | |
switch $foo | |
case 'abc' | |
echo 14 | |
case 'def' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! OperateOnVisualBlock(expr) | |
let save_reg = getreg('x') | |
let save_reg_type = getregtype('x') | |
normal! gv"xy | |
let list = split(@x, '\n') | |
let list = eval(printf(a:expr, 'list')) | |
let @x = join(list, "\n") | |
call setreg('X', '', 'b') | |
normal! gv"xp | |
call setreg('x', save_reg, save_reg_type) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function command_not_found_handle { | |
{echo "It looks like you're trying to run a UNIX command.";echo "Would you like some help with that?"; echo; /usr/lib/command-not-found $1 2>&1|fold -sw 55}|cowsay -f$HOME/.clippy -n | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap <silent><expr><leader>m ":<C-U>let @".v:register." = ".string(getreg(v:register))."<CR><C-F>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#imports | |
import urllib2 | |
import os | |
from array import array | |
#variables | |
sourceholder = "" | |
index = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# usage: | |
# taifu http://www.youtube.com/watch?v=KPWfBfFFrwsx | |
# taifu depends on VLC.app and rb-appscript gem | |
require 'rubygems' | |
require 'appscript' | |
require 'fileutils' |