Skip to content

Instantly share code, notes, and snippets.

@mhanberg
Created May 28, 2020 15:24
Show Gist options
  • Select an option

  • Save mhanberg/8611e6dc417f87f7a16ff43f0b9aa562 to your computer and use it in GitHub Desktop.

Select an option

Save mhanberg/8611e6dc417f87f7a16ff43f0b9aa562 to your computer and use it in GitHub Desktop.
# Uses neovim-remote: https://github.com/mhinz/neovim-remote
save-and-quit() {
for inst in $(nvr --serverlist); do
nvr --servername "$inst" --remote-send ':wqa<cr>'
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment