Skip to content
kd
6 Feb 2016
Back to blog

Neovim and Tmux

1 min read (125 words)

These instructions are OSX specific. On Windows machines, I tend to use Sublime Text or Atom. On Linux machines, I use Vim when my local machine is OSX running tmux.

I've found that with Neovim and tmux, I rarely have to leave the terminal to get something done. I wanted to save here some of the commands required to set up Neovim and tmux.

First update brew. If you don't have brew, you can install it from here.

Terminal window
brew update

After updating brew, you can install Neovim from HEAD using the following.

Terminal window
# https://github.com/neovim/homebrew-neovim/blob/master/README.md
brew install --HEAD neovim
brew reinstall --HEAD neovim

Install tmux using the following

Terminal window
brew install tmux

The following allows you to use copy paste instead tmux on OSX.

Terminal window
brew install reattach-to-user-namespace

This changes the cursor inside vim in the terminal when you change from NORMAL to INSERT and back.

Terminal window
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti

Citation

@online{krishnamurthy2016neovimandtmux,
  author = {Dheepak Krishnamurthy},
  title = {Neovim and Tmux},
  year = {2016},
  date = {2016-02-06},
  url = {https://kdheepak.com/blog/neovim-and-tmux/},
  langid = {en},
}

For attribution, please cite this work as:

Dheepak Krishnamurthy, "Neovim and Tmux", February 6, 2016 https://kdheepak.com/blog/neovim-and-tmux/


Raspberry Pi powered LED lamp
Using conda to manage packages