Skip to content

Instantly share code, notes, and snippets.

@3cooper
3cooper / vimVersion.txt
Created April 18, 2014 17:51
My current vim version info - log for an issue
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 18 2014 11:56:48)
MacOS X (unix) version
Included patches: 1-253
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl -clientserver +cscope +emacs_tags +folding +keymap +menu +mouse_netterm +netbeans_intg -python3 -sniff -tcl +virtualedit +writebackup
+arabic +clipboard +cursorbind +eval -footer +langmap +mksession +mouse_sgr +path_extra +quickfix +startuptime +terminfo +visual -X11
+autocmd +cmdline_compl +cursorshape +ex_extra +fork() +libcall +modify_fname -mouse_sysmouse -perl +reltime +statusline +termresponse +visualextra -xfontset
-balloon_eval +cmdline_hist +dialog_con +extra_search -gettext +linebreak +mouse +mouse_ur
@3cooper
3cooper / Locks.m
Last active August 29, 2015 13:57
Question for /r/learnprogramming about thread safety
@implementation test
{
NSData *current;
NSData *next;
}
//incoming data calls this method on thread A
- (void)gotNewData(NSData *)data
{
/// lock next here?
@3cooper
3cooper / tmux-workaround
Created March 6, 2014 02:14
vim/tmux clipboard issue workaround
#!/bin/sh
tmux new-session -d -s work
tmux new-window -n mac
tmux kill-window -t 0
tmux new-window -n firstWindow
tmux select-window -t 0
tmux attach-session -t work
@3cooper
3cooper / tmux-err
Created March 6, 2014 02:11
vim/tmux clipboard issue
#!/bin/sh
tmux new-session -d -s work
tmux new-window -n mac
tmux select-window -t 0
tmux attach-session -t work
@3cooper
3cooper / .vimrc
Last active December 18, 2015 00:39
Powerline rsync segment
let g:powerline_rsync = '0'
fu! SetRsync(text)
let g:powerline_rsync=a:text
execute ":redrawstatus!"
endf
fu! OnWrite()
...
...