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

Can't paste query in MacVim: "Cannot make changes, 'modifiable' is off" #217

Closed
sophiebits opened this issue May 14, 2016 · 6 comments
Closed

Comments

@sophiebits
Copy link

sophiebits commented May 14, 2016

If I open command-t in MacVim and try to paste a filename, it fails, saying

Cannot make changes, 'modifiable' is off

The same thing happens if I try to paste using <C-r>*. (In insert mode, <D-v> is actually mapped to <C-G>u<C-R><C-O>*.)

Is there any way to make this work?

@wincent
Copy link
Owner

wincent commented May 14, 2016

Good question! I am not sure. Works in the terminal, with and without bracketed paste mode, but I can repro what you're seeing in MacVim.

There might indeed be a way to intercept the paste in MacVim (via a mapping) and turn it into keystrokes (either via feedkeys() or by directly call some Command-T method to appending to the current search string. Don't know off the top of my head though.

@sophiebits
Copy link
Author

I seem to get the same thing in the terminal with bracketed paste mode too. Not sure where I'm going differently.

@wincent
Copy link
Owner

wincent commented Dec 14, 2017

Interesting. Terminal works for me (specifically iTerm) both locally and remote (over SSH) with and without tmux, always with bracketed paste mode active. What's your set-up (terminal app, $TERM, versions etc)?

@rahul342
Copy link

Being running into the same issue on MacVim. Any luck?

@wincent
Copy link
Owner

wincent commented Jan 1, 2019

Being running into the same issue on MacVim. Any luck?

Looks like the current input handling could be replaced with something based on getchar(). I suspect that would work in MacVim and in the terminal.

@wincent
Copy link
Owner

wincent commented Jul 24, 2022

Finally fixed on the "pu" branch, so closing this. 😌

@wincent wincent closed this as completed Jul 24, 2022
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

3 participants