You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have windows in vim, I am unable to switch between them; however, I am able to switch between Vim windows and Tmux Panes
System Specs
Apple M3 Pro Sequoia 15.1.1
NVIM v0.10.2
tmux 3.5a
Solution
From some debugging work, I realized the is_vim check currently doesn't always accurately return if the process is a vim process or not. This is because vim processes could be nested.
To properly check if the process is a vim process or not, I have wrote the script that goes through the descendent processes to check if there is a vim process or not.
Problem
When I have windows in vim, I am unable to switch between them; however, I am able to switch between Vim windows and Tmux Panes
System Specs
Solution
From some debugging work, I realized the
is_vim
check currently doesn't always accurately return if the process is a vim process or not. This is because vim processes could be nested.To properly check if the process is a vim process or not, I have wrote the script that goes through the descendent processes to check if there is a vim process or not.
Here is the repository with my solution: https://github.com/BriHan-Tech/is-vim
Note:
pstree
might require users to install something extra; however, you can probably dopstree
with regex to get an one-line solution.Here is the code for my solution:
is_vim.sh
tmux.conf
The text was updated successfully, but these errors were encountered: