plugin/threesomelib/util/keys.py @ 566ffcc452e2

Added tag v0.0.7 for changeset d13a0763f1b0
author Steve Losh <steve@stevelosh.com>
date Mon, 13 Jun 2011 21:49:25 -0400
parents bc6297aefe4b
children (none)
import vim


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

def unbind(key, options='', leader='<localleader>'):
    vim.command('unmap %s %s%s' % (options, leader, key))