autoload/threesomelib/util/keys.py @ cefc901de8a2

Factor out a bunch of stuff into autoload/.
author Steve Losh <steve@stevelosh.com>
date Tue, 28 Jun 2011 17:48:57 -0400
parents plugin/threesomelib/util/keys.py@bc6297aefe4b
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))