mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-15 13:23:47 -05:00
Ensure home/end/up/down key overrides are local to buffer
This commit is contained in:
@@ -47,9 +47,9 @@ endf
|
||||
|
||||
fun! s:imap(preserve_completion, key, icmd)
|
||||
if a:preserve_completion
|
||||
exe ":ino <silent> <expr> " . a:key . " pumvisible() ? \"" . a:key . "\" : \"" . a:icmd . "\""
|
||||
exe ":ino <buffer> <silent> <expr> " . a:key . " pumvisible() ? \"" . a:key . "\" : \"" . a:icmd . "\""
|
||||
el
|
||||
exe ":ino <silent> " . a:key . " " . a:icmd
|
||||
exe ":ino <buffer> <silent> " . a:key . " " . a:icmd
|
||||
en
|
||||
endf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user