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
global !p | |
import string, vim | |
import textwrap | |
_snips_fns = {} | |
def py(*args): | |
import re | |
old_a = vim.eval('@a') |
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
" ----------------------------------------------------------------------------- | |
" -- 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> |
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
# 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 |