Skip to main content

Questions tagged [tmux]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Characters get stuck on screen when using tmux

I use LazyVim on Alacritty on WSL, and when using it in tmux the screen doesn't display properly. Random characters get "stuck" on screen and won't clear until I do something that forces ...
DrRelling's user avatar
1 vote
0 answers
282 views

How to show pretty undercurl in Neovim in tmux?

steps to reproduce: open new iTerm2 window (no Tmux) run echo "rong;" | nvim --clean +"set spell" - notice the word is underlined with a curly line open new tmux pane repeat ...
Max Coplan's user avatar
0 votes
1 answer
194 views

Using Alt instead of Ctrl for vim-tmux-navigator

I recently configured vim-tmux-navigator and I'm enjoying it. However, the binding of ctrl-K overrides the kill to end of line command in the terminal and I use this a lot. As such, I want to bind ...
Stephen Rasku's user avatar
1 vote
1 answer
76 views

Vim in tmux and WSL: cannot highlight using ctermbg

I'm using Vim inside tmux, which runs in WSL (due to work reasons). As per documentation, I decided to change my Visual highlighting style using :hi cterm=NONE ctermbg=<insert-color-here>. ...
linhns's user avatar
  • 11
0 votes
0 answers
118 views

How to set TMUX window using set title option?

In neovim source code title option is set as follows at https://github.com/neovim/neovim/blob/73c7a0d58e6358d35fe2d5a11b3e807a625a0001/src/nvim/tui/tui.c#L1460 : void tui_set_title(TUIData *tui, ...
KamilCuk's user avatar
  • 265
0 votes
0 answers
144 views

Link cwd of vim with parent shell

Is it possible to link the cwd of vim to the cwd of the shell running it, or change the cwd of the parent shell within vim? I run neovim+tmux with the tmux-resurrect plugin, and it would be nice if I ...
Jaeshi's user avatar
  • 1
0 votes
0 answers
231 views

Vim vertical split window not rendered correctly

Not sure if it's related to vim configuration, tmux settings or ssh config, I opened a file with vim on a remote server, and every time when I use :vsp command to split a vertical window, the right ...
kuixiong's user avatar
  • 101
0 votes
0 answers
362 views

How to use the prefix key in tmux and Vim?

I am new to tmux. I have some configuration added to my tmux configuration file. I use Ctrl Space as prefix in tmux, and I want to use the same prefix key in Vim. But I find that Vim uses Ctrl Space ...
Solarisending's user avatar
0 votes
2 answers
71 views

<HOME> key is unwanted set to "toggle upercase"

During insert mode my Home key is set to toggle case of character which is very annoying. I tried this command to search for any settings, but failed to solve the problem. I would like to set it to go ...
abu_bua's user avatar
  • 133
2 votes
1 answer
1k views

Is it possible to make neovim use single color for underline?

As title. With my current setup it looks like this: But I only want it to use a single color. My current highlight setup: :hi IndentBlanklineContextStart IndentBlanklineContextStart xxx cterm=...
NeoZoom.lua's user avatar
  • 1,580
1 vote
0 answers
137 views

tmux send-keys to vim has no effect when used with swap-pane

I have a tmux window with 2 panes (pane-ids: 0 and 1). In the pane 0 there is vim launched. I want to fire a combination of two commands from tmux command-prompt: :send-keys -t 0 "iabc" ; ...
bloody's user avatar
  • 150
1 vote
1 answer
751 views

Issues of UI when combining Tmux and neovim and sourcing a python virtual env created with Poetry

The issue I recently switched to nvim + tmux and I have a fully working setup with various plugins. I use Poetry to manage my python virtual envs and it's a mandatory tool. I highlight the fact that ...
AxZxP's user avatar
  • 21
4 votes
1 answer
196 views

Is there a way to run an ex command without hitting colon first?

I am doing some scripting related to tmux and Vim. In my tmux window, I have Vim in one tmux pane and a Tcl command line in another tmux pane. I want to create a Tcl proc which will dump a string to ...
Chris Heithoff's user avatar
1 vote
5 answers
1k views

In nvi, how do I undo "already locked, session is read-only?"

On Mac OS Big Sur (11.6.3) with nvi 1.81.6 and several tmux panels, I accidentally quit Terminal. Now opening files leads to the message <file> already locked, session is read-only <file> ...
turtleyacht's user avatar
1 vote
0 answers
37 views

How can I create a key combination that sends the content of a markdown code cell to a tmux pane with slime?

I am a happy user of nvim-R, which enables to send R markdown chunks to an R console with <localleader>ca. R cells code blocks look like this in R markdown files: ```{r} head(faithful) ``` When ...
Paul Rougieux's user avatar
4 votes
0 answers
317 views

Why do <S-Left> and some other keys not work in vim under tmux?

I know at least about <S-Left>, <S-Right>, <C-Left>, <C-Rigth>. But I guess there are others. I'm mostly interested in the why. Because knowing a reason often makes finding a ...
x-yuri's user avatar
  • 359
0 votes
1 answer
164 views

How do I compound multiple autocmds for tmux window renaming?

I have these automcmds that work nicely for renaming tmux windows with the current filename (from here): autocmd BufEnter * call system("tmux rename-window " . expand("%:t")) ...
paradroid's user avatar
  • 387
0 votes
1 answer
243 views

How do I remap <c-x><c-k> to work with fzf.vim completion?

I'm trying to set up work completion with fzf.vim. Following the manual, I have: inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'window': { 'width': 0.2, 'height': 0.9, 'xoffset': ...
StevieD's user avatar
  • 1,542
1 vote
0 answers
297 views

Stop vim triggering activity when swapping tmux windows

In my tmux config I have focus-events and monitor-activity enabled to detect any changes that occur in other windows. When I open a vim session in one window and switch to another window, a focus ...
grenmester's user avatar
1 vote
1 answer
567 views

Vim locks up completely when pressing `ctrl+w` while using tmux + vim

I have a tmux + vim setup in which I use split panes. Every time I press ctrl+w to move between the vim panes, my vim instance becomes completely unresponsive. At first I thought this was a tmux issue ...
Muhammad Usman's user avatar
0 votes
0 answers
31 views

How may I setup a consistent shortcut to switch to the right pane, even the pane is in another Terminal?

I have 2 screens of difference sizes, and I am a Neovim user (with Tmux, iTerm2). I would like to hack a way so that I can have a consistent way to "switch to the pane on the right of this pane&...
Sunny Pun's user avatar
  • 482
0 votes
1 answer
429 views

Use true Solarized colors from within tmux in iTerm2

How can I use vim (8.2) within a tmux session in iTerm2, with Solarized colors? I have the Solarized colors set with my terminal, as suggested in the docs for vim solarized colors plugin. When I call ...
Patrick Sanan's user avatar
1 vote
0 answers
352 views

Send command from Tmux pane to Vim/Neovim

I wondered if there is a way to send a command from Tmux into any pane with the name of nvim or vim? The use case is to trigger a function which is defined in my init.vim file for toggling the ...
robertwilliams1983's user avatar
0 votes
1 answer
159 views

What is the vim equialent of CTRL+B, CTRL+<arrow-key> in tmux? [duplicate]

In tmux you can resize a pane gradually using the key combination CTRL+B CTRL+<arrow-key> to resize a split between panes. Can the same be done in vim between a split-buffer pane?
leeand00's user avatar
  • 3,651
3 votes
0 answers
489 views

<ESC> does not exit command-line mode. Neovim on tmux on WSL

nvim is not exiting command-line mode when the ESC key is hit. E.g., the key sequence :ff<ESC>ff gives :ffff at the command-line prompt. The expected behavior is that the first :ff be discarded ...
Liam's user avatar
  • 139
0 votes
1 answer
102 views

Neovim window rolls up when dividing screen horizontally with tmux

When I'm coding, I like to have neovim window up and command line window down to run my code on the screen. When I save a neovim file and divide the screen into two horizontally using tmux, the neovim ...
tet's user avatar
  • 151
0 votes
2 answers
81 views

conceal function not working in tmux

Version: vim 8.1 Problem: Latex objects like \int, ^, \alpha, \beta, etc, all get replaced by _ in tmux when using conceallevel=1,2. Expected: correct concealment, as it happens in normal terminal, ...
physicophilic's user avatar
3 votes
2 answers
1k views

How do I enable copy/paste between vim and tmux in both two directions?

In a tmux session, I'm running vim in one pane and a terminal in another pane. Recently, I figured out how to enter visual mode in tmux but it doesn't help much now. Can I yank selected text from a ...
Antsamotady's user avatar
0 votes
2 answers
194 views

Vim+Tmux unfocus airline when switching away

I'm using Vim with tmux and I wanted to know if there was a signal or something to 'deactivate' the vim window (like when you switch between vim windows) but also when you switch between Vim and Tmux. ...
vcbbcvbcv's user avatar
3 votes
3 answers
261 views

Perform action after invoking a <Plug> command

I use the following mapping to send code to a REPL using vim-slime and tmux: nmap <buffer> <S-CR> <Plug>SlimeLineSend How can I perform an action after I invoque this mapping?. For ...
mroavi's user avatar
  • 77
4 votes
2 answers
3k views

How to activate bracketed paste mode in GNOME Terminal for Vim inside tmux

Edit this issue happens inside a tmux session. The original value of $TERM before starting vim is: echo $TERM screen The issue appears for example when pasting this kind of indented code: def ...
Paul Rougieux's user avatar
7 votes
6 answers
2k views

Does Vim have functionality similar to tmux's `display-panes` command for selecting (goto) a specific window by number?

Does Vim have functionality similar to tmux's display-panes command for selecting (goto) a specific window by number? Sometimes when I've many windows open, it can be a pain to navigate them by C-w ...
Shuzheng's user avatar
  • 1,285
1 vote
1 answer
198 views

Compile program in same tmux window

I'm new to vim and I'm trying to setup my environment for c++ development, and I want to configure vim in a way that like vscode, if I push f5 key, It would compile the program in the existing tmux ...
Aidin's user avatar
  • 13
2 votes
2 answers
3k views

Pasting text on Vim inside tmux breaks indentation

When pasting text into Vim without tmux, it shows a normal paste: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ...
evaristegd's user avatar
1 vote
2 answers
440 views

Vim auto save buffer on Tmux `select-pane`

How to make (N)Vim auto save buffer on Tmux select-pane? In my vimrc I tried: " Auto save when buffer lose focus autocmd FocusLost,BufLeave * silent! wa " Save on buffer change set autowrite But ...
Artyom's user avatar
  • 127
3 votes
2 answers
3k views

Change Neovim cursor in insert mode under st (simple terminal) and tmux

My Neovim cursor normally switches to a pipe symbol (|) when I'm in st, but it doesn't when tmux is open in st. Is there something special to do? Version: Neovim: v0.5.0-dev Tmux: 2.9a My ...
Anatole Lucet's user avatar
4 votes
10 answers
3k views

Running code in a different tmux pane

I am new to vim and tmux. TL;DR I want to have tmux set up so that I have a pane for my (python) code and a pane for the output of the code. What I know Now, from vim I can do a command like :!...
Daniel Cohen Hillel's user avatar
2 votes
0 answers
1k views

Vim+Tmux: How to switch between Tmux Windows and Vim Tab Pages Seamlessly using the Alt Key?

In Vim I can switch between tab pages with :tabnext- to go left and tabnext+ to go right, simulating the tabs on an IDE. In Tmux I can switch between windows using <prefix>p and <prefix>n ...
Incalculon's user avatar
1 vote
1 answer
240 views

Send current vim line to seperate tmux pane and move cursor down

I am trying to send the vim line that is under the cursor to another tmux pane and then move the cursor on vim down 1 line. For context, I have vim open on 1 pane, and python open on another. I want ...
showzen's user avatar
  • 11
3 votes
1 answer
265 views

Cannot send `--` into tmux panes from vim

I've the following function and accompanying key-bindings to send texts from vim in one tmux pane to other: " copy yanked text to tmux pane function! Send_to_tmux(count) abort let _count = (a:...
3N4N's user avatar
  • 5,864
1 vote
0 answers
183 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 ...
TheMeaningfulEngineer's user avatar
0 votes
0 answers
96 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 ...
Tyler Durden's user avatar
  • 2,131
0 votes
0 answers
180 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 ...
appljuice's user avatar
4 votes
4 answers
3k 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 ...
jdhao's user avatar
  • 1,143
1 vote
0 answers
223 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: ...
Ben's user avatar
  • 111
7 votes
3 answers
988 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?
leeand00's user avatar
  • 3,651
9 votes
3 answers
5k 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 ...
SLN's user avatar
  • 547
1 vote
1 answer
150 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 ...
hyperpallium's user avatar
3 votes
1 answer
1k 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 ...
panosl's user avatar
  • 131
6 votes
1 answer
1k 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 ...
melodibit's user avatar
  • 161