This file contains 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
import functools,operator,itertools,types,six | |
class wrap(object): | |
""" | |
A lot of magic is in this class which allows one to do a proper wrap | |
around a single callable. | |
""" | |
CO_OPTIMIZED = 0x00001 | |
CO_NEWLOCALS = 0x00002 |
This file contains 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
""" session auto-saving and things | |
"set sessionoptions=blank,buffers,curdir,folds,help,options,tabpages,winsize | |
if has("unix") || &shellslash | let s:pathsep = '/' | else | let s:pathsep = '\' | endif | |
let g:session_file = join([getcwd(),".vim.session"], s:pathsep) | |
if (argc() == 0) && empty(v:this_session) && filereadable(g:session_file) | |
let g:session = 1 | |
else | |
let g:session = 0 | |
endif |
NewerOlder