Skip to content

Commit

Permalink
Remove section about Neovim incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
goronfreeman authored and christoomey committed Nov 3, 2018
1 parent 7eb75a1 commit 9f7d158
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ sources the non-interactive config.

### It doesn't work in Vim's `terminal` mode

Terminal mode is currently unsupported as adding this plugin's mappings there
causes conflict with movement mappings for FZF (it also uses terminal mode).
Terminal mode is currently unsupported as adding this plugin's mappings there
causes conflict with movement mappings for FZF (it also uses terminal mode).
There's a conversation about this in https://github.com/christoomey/vim-tmux-navigator/pull/172

### It Doesn't Work in tmate
Expand All @@ -262,32 +262,6 @@ detail.

[tmate]: http://tmate.io/

### It Doesn't Work in Neovim (specifically C-h)

[Neovim][] is a Vim fork. While Neovim is intended to be a drop-in replacement
for Vim, it does handle some keyboard input differently than Vim does. Some
users (including those on OS X) may find that all of their pane-switching
keybindings work with the exception of <kbd>Ctrl</kbd>+<kbd>h</kbd>, which
instead returns a backspace. The explanation of what is going on vastly exceeds
the scope of this guide, but you can read the discussion on this Neovim
[issue][].

The simplest and hackiest solution is to add the following to your Neovim
`init.vim`, capturing the <kbd>Backspace</kbd> that Neovim receives when
<kbd>Ctrl</kbd>+<kbd>h</kbd> is typed in normal mode:

```vimL
nnoremap <silent> <BS> :TmuxNavigateLeft<cr>
```

A more complete and less-hacky solution would be to update the incorrect
terminfo entry that is part of the problem on OS X (and some Linux
distributions) as described in this [comment][].

[Neovim]: https://neovim.io/
[issue]: https://github.com/neovim/neovim/issues/2048
[comment]: https://github.com/neovim/neovim/issues/2048#issuecomment-78045837

### It Still Doesn't Work!!!

The tmux configuration uses an inlined grep pattern match to help determine if
Expand Down

0 comments on commit 9f7d158

Please sign in to comment.