# HG changeset patch # User Steve Losh # Date 1355334675 18000 # Node ID e73227e8f1f93a718da30e8e497442852d11c677 # Parent 22feac7bc42467a8b17c8b833bd24f36b02759a4 Fix the splice_leader/prefix setting. diff -r 22feac7bc424 -r e73227e8f1f9 autoload/splice.vim --- a/autoload/splice.vim Sat Nov 03 18:07:47 2012 -0400 +++ b/autoload/splice.vim Wed Dec 12 12:51:15 2012 -0500 @@ -84,6 +84,13 @@ if !exists('g:splice_initial_scrollbind_path') "{{{ let g:splice_initial_scrollbind_path = 0 endif "}}} +if !exists('g:splice_prefix') "{{{ + if exists('g:splice_leader') + let g:splice_prefix = g:splice_leader + else + let g:splice_prefix = '-' + endif +endif "}}} " }}} diff -r 22feac7bc424 -r e73227e8f1f9 autoload/splicelib/util/keys.py --- a/autoload/splicelib/util/keys.py Sat Nov 03 18:07:47 2012 -0400 +++ b/autoload/splicelib/util/keys.py Wed Dec 12 12:51:15 2012 -0500 @@ -6,19 +6,19 @@ def bind(key, to, options='', mode=None, leader=None): if not leader: - leader = setting('leader', '-') + leader = setting('prefix', '-') vim.command('nnoremap %s %s%s %s' % (options, leader, key, to)) def unbind(key, options='', leader=None): if not leader: - leader = setting('leader', '-') + leader = setting('prefix', '-') vim.command('unmap %s %s%s' % (options, leader, key)) def bind_for_all(key, to, options='', mode=None, leader=None): if not leader: - leader = setting('leader', '') + leader = setting('prefix', '-') with buffers.remain(): for b in buffers.all: @@ -27,7 +27,7 @@ def unbind_for_all(key, options='', leader=None): if not leader: - leader = setting('leader', '') + leader = setting('prefix', '-') with buffers.remain(): for b in buffers.all: