Skip to content

Instantly share code, notes, and snippets.

@paulhandy
Created March 19, 2017 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulhandy/4dcdcaf24c4c521e4c41d04bb872855f to your computer and use it in GitHub Desktop.
Save paulhandy/4dcdcaf24c4c521e4c41d04bb872855f to your computer and use it in GitHub Desktop.
neovim tunnel for shared vim sessions
ssh -o ExitOnForwardFailure=yes -fNL $2:127.0.0.1:$1 ${@:3}
nvim-qt --server 127.0.0.1:$2
#usage:
#$ ./nvim-tunnel 6668 6669 user@remote.url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment