I hereby claim:
- I am davidmh on github.
- I am chaac (https://keybase.io/chaac) on keybase.
- I have a public key whose fingerprint is 91DC 6839 9375 4082 600D 9318 9D55 8125 A705 A525
To claim this, I am signing this object:
<?php # -*- coding: utf-8 -*- | |
namespace WPSE; | |
/* Plugin Name: Fast Next/Prev Post Links | |
* Plugin URI: http://wordpress.stackexchange.com/q/101435/ | |
*/ | |
add_action( | |
'fast_prev_post_link', | |
__NAMESPACE__ . '\fast_prev_post_link', | |
10, |
function precmd() { | |
if command git rev-parse --git-dir > /dev/null 2>&1; then | |
window_label=$(git rev-parse --show-toplevel) | |
tab_label=$(echo $window_label | awk -F\/ '{print "[git] " $NF}') | |
else | |
window_label=${PWD/${HOME}/\~} | |
tab_label=$window_label | |
fi | |
echo -ne "\e]2;${window_label}\a" | |
echo -ne "\e]1;${tab_label: -24}\a" |
" Ignore some folders and files for CtrlP indexing | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\.git$\|\.yardoc\|node_modules\|log\|tmp$', | |
\ 'file': '\.so$\|\.dat$|\.DS_Store$' | |
\ } |
I hereby claim:
To claim this, I am signing this object:
set fish_git_dirty_color red | |
set fish_git_not_dirty_color green | |
function parse_git_branch | |
set -l branch (git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\1/') | |
set -l git_status (git status -s) | |
if test -n "$git_status" | |
echo (set_color $fish_git_dirty_color)$branch(set_color normal) | |
else |
set fish_git_dirty_color red | |
set fish_git_not_dirty_color white | |
function parse_git_branch | |
set -l branch (git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\1/') | |
set -l git_status (git status -s) | |
if test -n "$git_status" | |
echo (set_color normal)$branch(set_color $fish_git_dirty_color)●(set_color normal) | |
else |
let mapleader = "<Space>" | |
unmap b | |
map <Leader>b :buffer | |
map #n nextSearchResult | |
map n :execute #nzz<CR> | |
site '*://*.reddit.com/*' { | |
unmap j | |
unmap k | |
set numerichints |
" reverse-i-search | |
function! s:get_history() | |
redir => history | |
silent! history | |
redir END | |
return map(split(history, '\n'), "strpart(v:val, 9)") | |
endfunction | |
function! s:run_cmd(cmd) | |
execute a:cmd | |
endfunction |
function! Cmd2QuickFix(command, prompt, use_swoop) | |
" use the current word as the default value | |
let default = expand("<cword>") | |
call inputsave() | |
let pattern = input(a:prompt, default) | |
call inputrestore() | |
if empty(pattern) | |
echo a:command . ' needs a pattern, see :h ' . a:command | |
else | |
exe 'silent ' . a:command . ' ' . pattern . ' | redraw!' |