wincent / terminus

🖥 Enhanced terminal integration for Vim
BSD 2-Clause "Simplified" License
463 stars 25 forks source link

Handle bracketed past in normal and visual mode #16

Closed thalesmello closed 8 years ago

thalesmello commented 8 years ago

I was wondering if it would be possible to handle bracketed paste on normal mode.

Imagine the (assuming + register is linked to system clipboard):

That would make the Vim terminal behave exactly like other GUI editors.

Is something like this even possible?

wincent commented 8 years ago

This already works; see here.

For example, in normal mode, on Command-V, it does :set paste, enters insert mode, and allows the pasted text straight through (no "+P needed).

thalesmello commented 8 years ago

Strange. That does't happen on my computer.

Vim interprets the characters literally. Would you have any idea what configuration could be missing?

Notice terminus pastes correctly (escaping the pasted text) when I'm in insert mode.

Atenciosamente, Thales Mello.

On Thu, Jul 21, 2016 at 4:42 PM, Greg Hurrell notifications@github.com wrote:

This already works; see here https://github.com/wincent/terminus/blob/2c0f002391e7111d0ef07ea4f3def98820e605a5/plugin/terminus.vim#L130-L149 .

For example, in normal mode, on Command-V, it does :set paste, enters insert mode, and allows the pasted text straight through (no "+P needed).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wincent/terminus/issues/16#issuecomment-234361742, or mute the thread https://github.com/notifications/unsubscribe-auth/ABEz4iIj9Fbdqydl3E7RjrDyVpMqT8j9ks5qX8uggaJpZM4JSDBo .

thalesmello commented 8 years ago

Nevermind. I just found the reason it does not seem to be working: I'm using Neovim.

I noticed there is an issue open. I'll take a look into it.