--- 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 "}}}
" }}}
--- 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', '<localleader>')
+ 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', '<localleader>')
+ leader = setting('prefix', '-')
with buffers.remain():
for b in buffers.all: