Reputation: 1078
I got "additional" functionality either from vim or some plugin. Recently I updated vim to 8.0.216 and updated all my plugins. The "additional" functionality I get is when I search for string in a file with /
and paste, for example "term", the resulted pasted text become <PasteStart>term<PasteEnd>
.
How can I disable this annoying functionality?
I tried to disable all my plugins and removed .vimrc
completely, but the wrapping is still there. Is this something new build to vim?
Edit: I use iTerm2. Tried in buit-in terminal - its the same. I saw somewhere this is related with tmux. Removed tmux and loaded fresh console. Same. I am using oh-my-zsh if this could be related.
Edit2 I use shortcut commands for both copy and paste.
Upvotes: 3
Views: 1429
Reputation: 360
The answer is: update your Vim.
Apparently it's a bug and updating Vim (to 8.0.0237) has solved it for me.
Upvotes: 3
Reputation: 4118
I have found three possible workarounds:
1, Use iTerm's Paste special
and uncheck the Bracketed paste mode
. Unfortunately, that's 3 extra clicks.
2, Use the Bracketed paste plugin, or add the relevant commands to your .vimrc
:
execute "set <f28>=\<Esc>[200~"
execute "set <f29>=\<Esc>[201~"
cmap <f28> <nop>
cmap <f29> <nop
3, Create an alternate shortcut to paste with Bracketed paste mode
disable:
- Go to prefs>keys
- Click the +
- Select the keyboard shortcut field and press ⌘⌥v
- For Action, select Paste…
- Select the desired options. E.g. Disable
Bracketed paste mode
.- Press ok
Source of alternative shorcut.
NOTE: You could simply re-bind the Command + V.
Upvotes: 3