You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described, vimrc mangles the paste when using Ctrl+Shift+V in normal mode. It consumes sometimes first 2 characters, sometimes much more as in the first screenshot and breaks all newlines and tabulation. When using insert mode, the characters are not consumed but newlines still break.
Upper vim is started with default vimrc + tmux. Lower vim is started with vim -u NONE (to start it default) + tmux. This is from my machine. I'm using Arch + alacritty + zsh (with oh-my-zsh) + tmux + vim + vimrc here.
As you can see, the lower sections pastes correctly, doesn't consume characters, the newlines and tabulation exists as it should.
Experimentally I've determined this to be the problem with filetypes.vim configuration
Setting this to xterm-256color for example fixes the problem. Perhaps setting other settings here may help, I'm not too knowledgeable of what this does, aside from something to do with colors.
Here it's set to xterm-256color
To determine whether this is a problem with my configuration, I've created a simple docker container which starts an arch machine, with everything needed to run vim + vimrc + tmux. Dockerfile.txt
FROM archlinux:latest
# Arch bootstrap as per container instructionsRUN pacman-key --init && \
pacman -Syu --noconfirm
# Install packagesRUN pacman -S git curl tmux vim --noconfirm
# Make tmux run on bash startRUN echo "tmux" >> ~/.bashrc
# Install vimrcRUN git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime && \
sh ~/.vim_runtime/install_awesome_vimrc.sh
# Run bash CMD ["bash"]
This one is inside the mentioned docker container. It breaks too, with minimal configuration.
And finally, changing this to xterm-256color inside of the container makes it work.
I've tried this with other terminals (namely kitty, konsole, gnome terminal) and shells (bash is used in the docker container) as well, so I'm excluding them from being culprits for now.
The text was updated successfully, but these errors were encountered:
As described, vimrc mangles the paste when using Ctrl+Shift+V in normal mode. It consumes sometimes first 2 characters, sometimes much more as in the first screenshot and breaks all newlines and tabulation. When using insert mode, the characters are not consumed but newlines still break.
Upper vim is started with default vimrc + tmux. Lower vim is started with
vim -u NONE
(to start it default) + tmux. This is from my machine. I'm using Arch + alacritty + zsh (with oh-my-zsh) + tmux + vim + vimrc here.As you can see, the lower sections pastes correctly, doesn't consume characters, the newlines and tabulation exists as it should.
Experimentally I've determined this to be the problem with
filetypes.vim
configurationvimrc/vimrcs/filetypes.vim
Line 66 in 46294d5
Setting this to
xterm-256color
for example fixes the problem. Perhaps setting other settings here may help, I'm not too knowledgeable of what this does, aside from something to do with colors.Here it's set to
xterm-256color
To determine whether this is a problem with my configuration, I've created a simple docker container which starts an arch machine, with everything needed to run vim + vimrc + tmux.
Dockerfile.txt
This one is inside the mentioned docker container. It breaks too, with minimal configuration.
And finally, changing this to
xterm-256color
inside of the container makes it work.I've tried this with other terminals (namely kitty, konsole, gnome terminal) and shells (bash is used in the docker container) as well, so I'm excluding them from being culprits for now.
The text was updated successfully, but these errors were encountered: