Can't move from vim pane with keybinding
Apologies if this is a dupe of the other similar issues. I can use the keybindings to navigate around my tmux panes, but I cannot use them to navigate from a tmux pane running vim. This is presumably some fault in the is_vim stuff...
Trying to run :TmuxNavigatorprocessList from within vim results in:
E492: Not an editor command: TmuxNavigatorProcessList
I've just installed a squeaky clean version of ubuntu. My versions are:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
$ tmux -V
tmux 2.6
$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 10 2018 21:31:58)
Hi @matthewbyrd, based on E492: Not an editor command: TmuxNavigatorProcessList, I'm guessing you don't have the most current version of the code (that change was a recent addition). Can you make sure you're working from the most current version of the vim plugin, and tmux config, and then comment back if you're still experiencing the problem?
Hi @christoomey thanks for your quick reply! I installed everything from scratch yesterday, so that'd be odd, but I just reinstalled again and have the same problem. One pertinent detail that I forgot to mention was that when I first tried to set things up (and now, after reinstalling), when I run tmux I get:
/home/mjb/.tmux.conf:122: invalid or unknown command: is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ [0/0] /home/mjb/.tmux.conf:123: invalid or unknown command: | grep -iqE '^[^TXZ ]+ +(\S+\/)?g?(view|n?vim?x?)(diff)?$'"
Removing the escaped line break and moving the entire command to one line "fixed" the issue for me insofar as the warning went away, but given that "is_vim" is crucial to navigating from vim, this must be it? Very weird...
I think that I have the same problem. I was using pure neovim, but when I change to NvChad, I can't move to other pane when neovim is open
In my case I had to add this mappings in my neovim config and it works
["<C-h>"] = { "<cmd> TmuxNavigateLeft<CR>", "window left" },
["<C-l>"] = { "<cmd> TmuxNavigateRight<CR>", "window right" },
["<C-j>"] = { "<cmd> TmuxNavigateDown<CR>", "window down" },
["<C-k>"] = { "<cmd> TmuxNavigateUp<CR>", "window up" },