metwork-framework / mfextaddon_vim

opinionated vim editor (and configuration) for use in metwork framework env (with python3 or python2)
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Vim adds extra spaces when pasting #65

Closed matthieumarrast closed 1 year ago

matthieumarrast commented 2 years ago

In metwork-mfext-2 with layer python3_vim@mfext activated, when we paste code into file opened with vim, we get extra spaces at the start of each new line.

image

Reference: https://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim/38258720#38258720

Solution: add plugin vim-bracketed-paste

I'll push it as a PR.

matthieumarrast commented 2 years ago

Solution:

cd /opt/metwork-mfext-2.0/opt/vim/config/vim/bundle
git clone https://github.com/ConradIrwin/vim-bracketed-paste
matthieumarrast commented 1 year ago

still facing issues while pasting into vim the plugin vim-bracketed-paste is well deployed but not loaded

matthieumarrast commented 1 year ago

as per the list of plugins available here: /opt/metwork-mfext-2.0/opt/vim/config/vim/bundle/ it seems the below plugins are not loaded as "local-additions":

checked with command :help local-additions into vim

EDIT: this is because there is no /doc folder for related plugins check if plugin is loaded with command: :set runtimepath?

matthieumarrast commented 1 year ago

fixed with PR #69 by removing vim-bracketed-paste plugin and removing set t_BE= in vimrc file