Commits

Steve Losh committed e73227e

Fix the splice_leader/prefix setting.

Comments (0)

Files changed (2)

autoload/splice.vim

 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 "}}}
 
 " }}}
 

autoload/splicelib/util/keys.py

 
 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:
 
 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: