Skip to content

Instantly share code, notes, and snippets.

View kearnh's full-sized avatar

Kearn Holliday kearnh

  • Durban, South Africa
View GitHub Profile
global !p
import string, vim
import textwrap
_snips_fns = {}
def py(*args):
import re
old_a = vim.eval('@a')
@kearnh
kearnh / maps.vim
Created October 28, 2011 08:45
Custom Vim mappings
" -----------------------------------------------------------------------------
" -- Navigation
" Find start of next number
noremap <silent> <c-f> /\<\d<CR>
"noremap <silent> <c-t> ?\<\d<CR>
" open empty tab
noremap <silent> <c-t> :tabe<CR>
@kearnh
kearnh / test_debugger.tcl
Created September 13, 2011 15:15
A file used to test TagmaDebugger.
# FIXME add external package, and then call into package
proc qux {} {
set s 0
for {set i 0} {$i < 3} {incr i} {
set m [expr 2*$i]
incr s $m
}
return $s