My .tmux.conf
file was initially empty, but then I edited by basically copying the Linux part of this answer from UnixSE. The problem below occurred both before and after I edited that conf
file.
I tried to copy text from a website. When I'm using Vim in bash without tmux, I can paste the text to Vim without problems and it looks like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
However, when I'm inside tmux, the indentation 'breaks' and I get something like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
That has never happened when I paste the text on Vim inside bash (without tmux). And, in case it matters, the way I usually copy and paste is by selecting the text on my web browser, then pressing Ctrl+C , then going to Vim, enter Insert Mode, and finally press Ctrl+Shift+V .
How can I make Vim inside tmux paste my text the way it is in the block in the top?
What do I need to fix?
:set paste
before insertion maybe ; I use tmux but I never had a similar case..tmux.conf
file? If not, what would you recommend?