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

Display is not working in TMUX #69

Open
neumachen opened this issue Oct 17, 2021 · 8 comments
Open

Display is not working in TMUX #69

neumachen opened this issue Oct 17, 2021 · 8 comments

Comments

@neumachen
Copy link

neumachen commented Oct 17, 2021

I am not sure what the issue is for this to be happening, can anyone point me to the right direction so I can attempt to fix it?

As you can see, I am seeing some weird characters but in my normal mode (outside tmux) it works just fine.
Screen Shot 2021-10-17 at 10 45 16

@neumachen neumachen changed the title Display is not working in vim Display is not working in TMUX Oct 17, 2021
@xaizek
Copy link
Member

xaizek commented Oct 17, 2021

Compare output of echo $TERM and locale inside and outside of tmux. $TERM should be tmux* (or if not available: screen*) and locale shouldn't differ and use UTF-8.

@neumachen
Copy link
Author

It seems I had to set the vifm_term to tmux if it's inside the tmux shell.

@neumachen
Copy link
Author

Also, it seems after I open SQL files the locale vars get changed to "C".

@xaizek
Copy link
Member

xaizek commented Oct 17, 2021

It seems I had to set the vifm_term to tmux if it's inside the tmux shell.

You're already in tmux, running it second time isn't really a good idea and tmux vifm won't actually work.

Also, it seems after I open SQL files the locale vars get changed to "C".

That might be the cause (similar issue was #48).

@neumachen
Copy link
Author

neumachen commented Oct 18, 2021

I learned more about this, it seems the issue is caused by this plugin, https://github.com/voldikss/vim-floaterm. I just don't know how it's changing the LANG vars. But I'm not 100% because what I've noticed is, when I open vifm for the first time inside VIM, it's okay. But once I open a file, that's when things go wonky.

@xaizek
Copy link
Member

xaizek commented Oct 18, 2021

Looks like it sets up environment variables here and something goes wrong (accidentally resets LC_* variables for example). If that's the issue, you should create an issue in that repository as it's only indirectly related to Vifm.

@neumachen
Copy link
Author

So what exactly is the fix here? Remove the plugin? Because I think I did that already.

@xaizek
Copy link
Member

xaizek commented Oct 22, 2021

If the plugin causes this, it can probably be fixed. If it's not the plugin, need to find an actual cause. You can temporarily leave only vifm.vim and comment out contents of vimrc to see if anything changes.

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

No branches or pull requests

2 participants