Skip to content

Commit fd01b5d

Browse files
committed
Keep bracketed paste enabled in normal and visual mode
The mappings are already in place, but are unused without this change. In command line mode the escape sequences are mapped to <nop>, so they will be ignored and keeping bracketed paste enabled all the time should cause no trouble.
1 parent 36779ba commit fd01b5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/bracketed-paste.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function! WrapForTmux(s)
2424
return tmux_start . substitute(a:s, "\<Esc>", "\<Esc>\<Esc>", 'g') . tmux_end
2525
endfunction
2626

27-
let &t_SI .= WrapForTmux("\<Esc>[?2004h")
28-
let &t_EI .= WrapForTmux("\<Esc>[?2004l")
27+
let &t_ti .= WrapForTmux("\<Esc>[?2004h")
28+
let &t_te .= WrapForTmux("\<Esc>[?2004l")
2929

3030
function! XTermPasteBegin(ret)
3131
set pastetoggle=<f29>

0 commit comments

Comments
 (0)