Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tmux]

Questions about using vim into a tmux session and how to customize integration.

0
votes
0answers
20 views

Sharing a copy register between vim on different machines?

The image below shows two terminals. Both are running vim instances on remote machines (ssh and a serial connection through an UART cable). Vim's on those machines don't have a way to access the ...
0
votes
0answers
28 views

Any way to add an existing Vim environment to a tmux session?

If I already have vim running with numerous documents open and I want to use tmux, it seems that I have to quit vim, start the tmux session and then reopen everything again. Is there anyway to start ...
0
votes
0answers
12 views

What is the [0/0] that pops up in corner of tmux vim if I try to scroll up?

When I'm in vim on tmux with terminal and I scroll up, the cursor will jump to where my mouse is and show a [0/0] on the right corner of my window. When that happens, I can't type or move the cursor ...
0
votes
3answers
95 views

Nvim can not detect focus change inside tmux sessions

I use the following setting for automatic line number toggle. augroup numbertoggle autocmd! autocmd BufEnter,FocusGained,InsertLeave * set relativenumber autocmd BufLeave,FocusLost,InsertEnter ...
1
vote
0answers
25 views

Update OS enviroment variables from inside VIM

I use vim inside tmux over an ssh session and I often run into the issue where the $DISPLAY variable gets changed, screwing up my copy-paste. When I log in, $DISPLAY gets assigned to something new: ...
3
votes
2answers
115 views

Equivalent to tmux CTRL+B z in vim?

In tmux if you have alot of panes open, you can press CTRL+B, z to zoom into that terminal pane. Is there a way to do the same thing in vim, to zoom into / out of the selected pane?
2
votes
1answer
269 views

Sending command to different tmux pane from vim

behave test language need to execute different lines of the behave feature file, for example, if I want to test the line number 99, I'll need to input the following line in the terminal behave ...
1
vote
1answer
56 views

remote scrollbind with an offset (to increase the viewing area, over two screens)

Could I just duplicate what scrollbind does, and use tmux to send-keys to the other vim? I have vim on an android device (in termux), and want the effect of spreading vim over another device's ...
2
votes
1answer
183 views

Vim Session keeping terminal state

I am currently using tmux to have two terminals on the left and vim on the right. One terminal is running Django server, and the other one is for general usage. I am trying to find out if I can ditch ...
3
votes
1answer
265 views

Vim, tmux, and xterm-bracketed-paste

From Terminal.app on my Mac, I SSH in to a box where I run Vim 8.0.1601. Left at that, everything works fine. But if I launch Vim from within a tmux window, go to insert mode, and then attempt to ...
3
votes
2answers
134 views

sending variable commands in vim-slime

I am relatively new to vim and have started using the vim-slime plugin. One thing I use it for is to run python scripts, for example :SlimeSend1 python ~/myPythonFile.py I now would like to automate ...
1
vote
1answer
523 views

What can Neovim/Vim's :terminal do that tmux can't?

I've been using tmux for a while, and recently tried :term in Neovim for a few days. Aside from some small trivial differences, it seems mostly the same to me? What is the advantage of using :term? ...
2
votes
1answer
741 views

Separate C-m and Enter

I am using zsh, urxvt, tmux and in there vim. I am not 100% sure who causes the effect but I would like to bind something to ctrl and m but not to carriage return in vim. Does somebody how this is ...
1
vote
0answers
175 views

Nvim not getting correct terminal size opening session in tmux [closed]

MacOS Sierra 10.12.6 + iTerm2, build 3.1.4 + NeoVim 0.2.0_1. I run on iTerm a Tmux session loaded with teamocil [session] In one of tmux windows there's an instance of nvim working smoothly, ...
4
votes
1answer
173 views

Send file and line number to tmux

I want to send commands to tmux to run Elixir tests from vim. Using the % variable allows me to run the command to run a test for a single file. The relevant line in my .vimrc is nmap <silent> ...
1
vote
1answer
103 views

Fugitive Gbrowse while being ssh on a server

I work remotely via ssh on my dev machine which runs a tmux. I want to pipe the output of the Gbrowse back to my laptop. Is there any reasonable way to do that.
2
votes
0answers
231 views

vim in tmux lose highlighting

I'm using vim 8.0 and tmux 2.5 on ubuntu. And I have set the TERM environment export TERM=screen-256color and run as tmux -2. Normally, nothing goes wrong. It's like the following picture: But ...
2
votes
1answer
113 views

How to open file in specific window (create or reuse)?

I'm trying to develop a plugin that would show results of SQL queries, by executing them inside tmux split and using mysql pager option to save them to the specific file. What I want now is to either ...
1
vote
1answer
217 views

Send message to tmux properly

I am trying to send a message to a running tmux window that is side by side, to tell it to run a script when I press a button. What I am trying to do is done by doing: silent !tmux send -t 0.1 ruby ...
5
votes
1answer
227 views

Vim + Tmux: Resetting tmux tab name when exiting vim

I'm labeling my Tmux tabs with the current file in vim like so: autocmd BufEnter * let &titlestring = ' ' . expand("%:t") set title set t_ts=k Then I have a VimLeave autocmd to have tmux rename ...
1
vote
2answers
847 views

Why isn't vim applying syntax highlighting to this code?

If I open a random file (in this case, say .zshrc) in a blank vim with no rc file , but with vi compatibility forcing off vim -N -u NORC ~/.zshrc As expected vim will launch and display .zshrc ...
0
votes
1answer
402 views

How to open ranger from neovim and tmux, like Tim Pope`s dispatch do

Archlinux, termite -> tmux -> neovim I want to open ranger in new pane, and when it ended and pane was closed - open selected file/files. This flow is similar to Tim Pope`s dispatch behavior " ...
0
votes
2answers
1k views

vim under tmux looses color scheme in iterm2

OSX - sierra iterm2 3.0.13 tmux 2.3 vim 8.0.176 colors work fine in bare iterm2: but under tmux: iterm2: echo $TERM xterm-256color tmux: echo $TERM screen-256color tmux config vimrc I'm ...
16
votes
2answers
4k views

No syntax highlighting in tmux

I installed tmux in iTerm 2.(Build 3.0.13) When I execute vim in tmux, syntax highlighting looks like this. But outside tmux, syntax highlighting looks fine. My $TERM inside and outside tmux is ...
0
votes
1answer
737 views

Wrong colors inside tmux

In vim without tmux: In vim with tmux: Color in Vim is 'default' My .vimrc has nothing related to colors. My .tmux.conf is empty. My .bashrc is untouched. I am using gnome-terminal with a custom ...
1
vote
1answer
804 views

How to remap <C-W>hjkl to navigate tmux panes and vim splits

I'm trying to use vim-tmux-navigator. I'd like to use default key bindings to move between vim and tmux splits. Which is <C-W>hjkl. But it isn't working. Either you can't remap anything with C-...
5
votes
1answer
3k views

Truecolor (termguicolors) causes display issues in Tmux

As far as my setup is concerned, I'm running Tmux 2.2 (with true color support enabled) inside iTerm2 version 3 on a Mac. To clarify, there are other questions already answered which address ...
9
votes
2answers
227 views

Share completions between running vim instances

I use tmux for the most part instead of using vim tabs and splits. Does vim have the ability to share completions (via Ctrln and Ctrlp) between running instances? Is there a way to set it up where ...
1
vote
0answers
258 views

Visual selection in Nvim-R plugin sends one line too much to terminal

I have just set up the Nvim-R plugin for Neovim to send lines of code from an .R-file opened with Neovim to a terminal inside a tmux session. Previously, I have worked with its predecessor Vim-R, ...
1
vote
2answers
539 views

How can I use tmux for copying if I can't access the system clipboard?

I'm testing out using vim with tmux. One thing that I could do with vim with a split window is yank text from one buffer and paste it into the other. This no longer works when I have vim buffers in ...
4
votes
1answer
1k views

Tmux messing with Vim highlighting [duplicate]

When I load up vim inside tmux there is a background color behind all text as so: If I load it up not in tmux I get the following: I want it to be like image 2, I can not understand why tmux is ...
0
votes
1answer
374 views

On Ubuntu and in tmux, vim does not react to Ctrl+Home and Ctrl+End

Outside of tmux they work well. These key combinations should move the cursor to the beginning of the document and, respectively, to the end of the document. How do I make them work? Thank you very ...
5
votes
1answer
1k views

Mouse wheel scrolling inserts characters

I'm using macvim inside tmux inside iTerm2. Basically I just want to be able to scroll the buffer using the mousewheel. I've set set -g moude-mouse on in my .tmux.conf, and set mouse=a set ttymouse=...
14
votes
3answers
1k views

How to label tmux tabs with the name of the file edited in vim?

Whenever I open a tmux session in terminal, all of the tabs containing vim sessions are labelled vim. My question is: How to configure it to label tmux tabs with the name of the edited file or ...
5
votes
1answer
2k views

Change cursor shape in different terminals

At home I use iTerm2 on MacOS X, and at work, I have a laptop with CygWin. I have another PC where I use gnome-terminal or terminator, and sometimes I use tmux. I'm looking to configure the cursor ...
14
votes
2answers
3k views

Cursor shape under vim + tmux

How can I have different cursor shapes when running vim inside tmux under cygwin? WITHOUT tmux these lines would be enough to achieve what I want: let &t_SI = "\e[5 q" let &t_EI = "\e[2 q" ...
19
votes
3answers
7k views

Can the split separator in vim be less than a full column wide?

I use a tiling window manager (awesome) + a terminal multiplexer (tmux) + splits inside of vim. I have no window decorations at all, so you there is no visual split between them at all if the content ...
15
votes
2answers
2k views

Tmux is changing part of the background in vim

This only seems to happens when using vim inside of tmux. I'm also using iTerm 2. If I create a new tmux pane or resize a tmux pane, it immediately looks like the this: And then the only way to fix ...