Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ColMelvin opened this issue Jan 24, 2017 · 1 comment
Open

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

ColMelvin opened this issue Jan 24, 2017 · 1 comment

Comments

@ColMelvin
Copy link

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

@ColMelvin
Copy link
Author

If this can't be fixed, it would be nice to fall back to t_SI and t_EI so at least insert mode works. Sadly, I haven't found a straightforward way to detect if a shell command has already been run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant