Skip to content

Instantly share code, notes, and snippets.

inoremap ( <c-r>=OpenPair('(')<CR>
inoremap ) <c-r>=ClosePair(')')<CR>
inoremap { <c-r>=OpenPair('{')<CR>
inoremap } <c-r>=ClosePair('}')<CR>
inoremap [ <c-r>=OpenPair('[')<CR>
inoremap ] <c-r>=ClosePair(']')<CR>
" just for xml document, but need not for now.
"inoremap < <c-r>=OpenPair('<')<CR>
"inoremap > <c-r>=ClosePair('>')<CR>
function! OpenPair(char)
@awafer
awafer / bmp.py
Created August 3, 2012 04:05 — forked from voidw0rd/bmp.py
Python bitmap
import struct, random, sys
from PIL import Image
class Bitmap(object):
def __gen_radom_pixel__(self):
return 111
return random.randint(0, 255)