Skip to content

CSI ?2004h not set if external shell command is run first #29

@ColMelvin

Description

@ColMelvin

If any shell cmd (:!) is run before let &t_ti .= ..., then the CSI ?2004h escape code will not be sent to the terminal, making this plugin a nop. However, if the shell command appears after let &t_te .= ..., there are no issues.

Reproduction steps:

echo 'silent !true' > ~/.vimrc
cat bracketed-paste.vim >> ~/.vimrc
vim
#Attempt to paste contents that need "set paste" while in insert mode

VIM - Vi IMproved 7.4
Commit: 96451c8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions