Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in tmux #2

Closed
oalders opened this issue May 16, 2018 · 8 comments
Closed

Not working in tmux #2

oalders opened this issue May 16, 2018 · 8 comments

Comments

@oalders
Copy link

oalders commented May 16, 2018

Hi, thanks for this. I got to your repo from your coderwall comment which said this works in tmux. I'm seeing it work fine in vim, but not vim inside of tmux. I'm using tmux 2.2

@ryanpcmcquen
Copy link
Owner

It works here with vim 8.0.1453 and tmux 2.6. What is the behavior you are seeing/steps you are taking?

@oalders
Copy link
Author

oalders commented May 16, 2018

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.

@ryanpcmcquen
Copy link
Owner

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

@oalders
Copy link
Author

oalders commented May 18, 2018

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.

@oalders oalders closed this as completed May 18, 2018
@ryanpcmcquen
Copy link
Owner

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

@ryanpcmcquen
Copy link
Owner

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

@oalders
Copy link
Author

oalders commented May 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants