Skip to content

Commit

Permalink
Avoid using <f28> and <f29> due to conflict with other plugins using …
Browse files Browse the repository at this point in the history
…them
  • Loading branch information
von committed Dec 23, 2019
1 parent bfa2594 commit 24a8e4d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions plugin/bracketed-paste.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ let &t_SI .= "\<Esc>[?2004h"
let &t_EI .= "\<Esc>[?2004l"

function! XTermPasteBegin(ret)
set pastetoggle=<f29>
set pastetoggle=<Esc>[201~
set paste
return a:ret
endfunction

execute "set <f28>=\<Esc>[200~"
execute "set <f29>=\<Esc>[201~"
map <expr> <f28> XTermPasteBegin("i")
imap <expr> <f28> XTermPasteBegin("")
vmap <expr> <f28> XTermPasteBegin("c")
cmap <f28> <nop>
cmap <f29> <nop>
map <expr> <Esc>[200~ XTermPasteBegin("i")
imap <expr> <Esc>[200~ XTermPasteBegin("")
vmap <expr> <Esc>[200~ XTermPasteBegin("c")
cmap <Esc>[200~ <nop>
cmap <Esc>[201~ <nop>

0 comments on commit 24a8e4d

Please sign in to comment.