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:
- Open my Git config:
vim ~/.gitconfig - Make vertical split for viewing the Gist:
:vne - Open my list of Gists:
:Gist -l - 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:
- Open your .gitconfig
- :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.
done.
Cool, thanks!