mattn/vim-gist

Opening Gist unnecessarily closes split buffer

Kazark opened this issue · 5 comments

I store my .gitconfig as a Gist. I like to use your plugin to update my Gist as my local ~/.gitconfig changes. However, when I use this particular workflow, opening the Gist unnecessary closes another window:

  1. Open my Git config: vim ~/.gitconfig
  2. Make vertical split for viewing the Gist: :vne
  3. Open my list of Gists: :Gist -l
  4. Hit Enter to open the one I want

Expected: Vim looks like this:

________________________________
|   Gist list   | ~/.gitconfig |
|   buffer      |              |
|---------------|              |
| Gist          |              |
| .gitconfig    |              |
````````````````````````````````

Instead: it actually looks like this:

________________________________
| Gist list buffer             |
|                              |
|------------------------------|
| Gist .gitconfig              |
|                              |
````````````````````````````````

Added gist_edit_with_buffers. Please set let g:gist_edit_with_buffers = 1 in your vimrc

Btw, how about to add GistID: 18cfc3ce5239c171ca93 into your gist? You can do it with:

  1. Open your .gitconfig
  2. :Gist

Pulled the latest and added let g:gist_edit_with_buffers = 1 in my Vim configuration, but this didn't solve the issue; I got the same result. Also, good to know about the GistID thing. In this case, there are some portions of the file which I don't want to sync, so I want to manually diff it and sync it with Vim. Thanks.

Ah, seems typo.

370d0d3

will fix

done.

Cool, thanks!