Skip to content

Instantly share code, notes, and snippets.

set nocompatible
source $VIMRUNTIME/vimrc_example.vim
behave xterm
set selectmode=mouse
set lines=50
set co=80
set vb
set ignorecase
set lcs=tab:>-,trail:-
set nolist
:fu! Taskpaper()
:return setline(line("."), getline(line(".")) . "@done(" . strftime("%Y-%m-%d") . ")")
:endf
:map <F11> <ESC>:call Taskpaper()<CR><ESC>
:imap <F11> <ESC>:call Taskpaper()<CR><ESC>
@narbs
narbs / suck.sh
Created August 24, 2011 13:34
iTunes connect auto ingress bash script
#!/bin/bash
itc_username=some_username
itc_password=some_password
itc_account=12345678
yesterday=`date -v-1d +"%Y%m%d"`
if [ "$1" == "" ]; then
echo downloading file for yesterday: $yesterday
@narbs
narbs / ip2chrome.vim
Created May 2, 2012 14:17
This vim script converts an Instapaper csv file to a list of chrome bookmark links as html. Paste these into an empty chrome bookmark template and use this to import your links from Instapaper into Pinboard
%s/URL,Title,Selection,Folder\n//
%s/",[^,]*,[^,]*$/"/
%s/\(.*\),"\(.*\)"$/<DT><A HREF="\1">\2<\/A>/