def Init(): ftpath = os.path.realpath(__file__) ftpath = os.path.dirname(ftpath) ftpath = os.path.join(ftpath, 'stream') plugins = Plugins(ftpath) plugins.loads() Redirect()#.log() keys = { 'digit': string.digits, 'lower': string.ascii_lowercase, 'upper': string.ascii_uppercase, 'punc': string.punctuation, 'mult': ['<tab>', '<bs>', '<cr>', '<space>', '<esc>', '<c-j>'] } for cls, v in keys.items(): for k in v: key = k name = k if k == '|': name = key = '\\|' if k == '\\': name = '\\\\' if key == '"' : name = '\\%s' % key if cls == 'mult': name = name.replace('<', '<lt>') command='inoremap <expr> %s Input_Monitor("%s", "%s")' % \ (key, cls, name) vim.command(command)
def Init(): ftpath = os.path.realpath(__file__) ftpath = os.path.dirname(ftpath) ftpath = os.path.join(ftpath, 'prompt') plugins = Plugins(ftpath) plugins.loads() log.info(__Handles)