Comments (8)
Thanks for the suggestion. I started with a new user on a new VM and it worked fine. I brought back my dot files and then peeled them back until I narrowed it down to this diff:
-Plug 'tpope/vim-sensible'
+"Plug 'tpope/vim-sensible'
source ~/.local_vimrc
@@ -61,7 +61,7 @@ set hlsearch
set incsearch
" indents
-set autoindent
+"set autoindent
It looks to me like autoindent
was the culprit. That's also found here: https://github.com/tpope/vim-sensible/blob/master/plugin/sensible.vim#L20
As it stands, with those changes paste works for me in both vim
and tmux
. Thanks for your help.
from fix-vim-pasting.
@oalders, thanks for tracking that down! I added a note to the README:
9327325
from fix-vim-pasting.
It works here with vim
8.0.1453
and tmux
2.6
. What is the behavior you are seeing/steps you are taking?
from fix-vim-pasting.
I paste some text in vim
like:
use This;
foo;
bar;
In vim
the formatting is preserved. In tmux
I see:
use This;
foo;
bar;
I've tried with vim
8.0.1092
and tmux
2.2
as well as vim 8.0
and tmux 2.7
.
from fix-vim-pasting.
Relevant dot files:
https://github.com/oalders/dot-files/tree/master/vim
https://github.com/oalders/dot-files/blob/master/tmux.conf
https://github.com/oalders/dot-files/blob/master/tmux/macos
from fix-vim-pasting.
Have you tried removing your .vimrc
and/or tmux
configuration temporarily?
from fix-vim-pasting.
Strangely, my .vimrc
has autoindent
and still works ...
from fix-vim-pasting.
It may have something to do with the version of vim
. I can do some more checking. I'd be interested to track down exactly where the issue is.
from fix-vim-pasting.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fix-vim-pasting.