Git Product home page Git Product logo

Comments (8)

oalders avatar oalders commented on June 2, 2024 1

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.

ryanpcmcquen avatar ryanpcmcquen commented on June 2, 2024 1

@oalders, thanks for tracking that down! I added a note to the README:
9327325

from fix-vim-pasting.

ryanpcmcquen avatar ryanpcmcquen commented on June 2, 2024

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.

oalders avatar oalders commented on June 2, 2024

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.

oalders avatar oalders commented on June 2, 2024

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.

ryanpcmcquen avatar ryanpcmcquen commented on June 2, 2024

Have you tried removing your .vimrc and/or tmux configuration temporarily?

from fix-vim-pasting.

ryanpcmcquen avatar ryanpcmcquen commented on June 2, 2024

Strangely, my .vimrc has autoindent and still works ...

from fix-vim-pasting.

oalders avatar oalders commented on June 2, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.