plugin/threesomelib/util/keys.py @ a7fd8bdc3c5a semver

Added tag v0.0.1 for changeset c353930abfc4
author Steve Losh <steve@stevelosh.com>
date Mon, 13 Jun 2011 01:09:38 -0400
parents adb7e3942b34
children bc6297aefe4b
import vim


def bind(key, to, options='', mode=None, leader='<localleader>'):
    vim.command('nnoremap %s %s%s %s' % (options, leader, key, to))