autoload/threesomelib/util/keys.py @ d24125017d7f

Added tag v0.1.0 for changeset 1d6f4048a9b3
author Steve Losh <steve@stevelosh.com>
date Thu, 30 Jun 2011 18:20:25 -0400
parents cefc901de8a2
children 61c6ca7b2d8a
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))