Skip to content

Instantly share code, notes, and snippets.

@bathizte
Created May 1, 2016 15:44
Show Gist options
  • Save bathizte/d6d9d84c5533b22dacd93847a03c1974 to your computer and use it in GitHub Desktop.
Save bathizte/d6d9d84c5533b22dacd93847a03c1974 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Tmux session embedding an nvim instance to be used with nvim-mode for atom
# See : https://github.com/carlosdcastillo/vim-mode#how-do-you-run-this
NVIM_PIPE="/tmp/neovim"
TMUX_SESSION="atomNvim"
mkdir -p $NVIM_PIPE;
tmux new-session -s $TMUX_SESSION -d;
tmux send-keys -t 1 "NVIM_LISTEN_ADDRESS=$NVIM_PIPE/neovim nvim" C-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment