Skip to content

Instantly share code, notes, and snippets.

@nelstrom
Last active May 4, 2017 08:39
Show Gist options
  • Save nelstrom/e7910fd07f1bd8b22499915843ad465a to your computer and use it in GitHub Desktop.
Save nelstrom/e7910fd07f1bd8b22499915843ad465a to your computer and use it in GitHub Desktop.
When a temporary buffer that was opened by neovim-remote is closed, automatically unlist it.
if has('nvim')
augroup neovim
autocmd BufWinEnter *
\ if exists('b:nvr')
\| setlocal bufhidden=wipe
\| endif
augroup END
endif
@nelstrom
Copy link
Author

nelstrom commented May 3, 2017

My attempt to solve this question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment