ryvnf / readline.vim

Readline emulation for command-line mode
88 stars 2 forks source link

Does not work together with :paste #9

Closed parisni closed 2 years ago

parisni commented 2 years ago

so far, when :paste is run then this stops working

ryvnf commented 2 years ago

I think this will be a tough one to fix. From :help 'paste' (bold emphasis mine):

When the 'paste' option is switched on (also when it was already on):

  • mapping in Insert mode and Command-line mode is disabled
  • abbreviations are disabled
  • 'autoindent' is reset

This is basically what 'paste' is supposed to do, disable all mappings so text can be pasted verbatim.

I do not think there is any reasonable way to get around this.

parisni commented 2 years ago

yeah, this makes sense. thanks for the explanations.

On Sun Feb 6, 2022 at 12:35 PM CET, Elias Åström wrote:

I think this will be a tough one to fix. From :help 'paste' (bold emphasis mine):

When the 'paste' option is switched on (also when it was already on):

  • mapping in Insert mode and Command-line mode is disabled
  • abbreviations are disabled
  • 'autoindent' is reset

This is basically what 'paste' is supposed to do, disable all mappings so text can be pasted verbatim.

I do not think there is any reasonable way to get around this.

-- Reply to this email directly or view it on GitHub: https://github.com/ryvnf/readline.vim/issues/9#issuecomment-1030814246 You are receiving this because you authored the thread.

Message ID: @.***>