You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a file that I like to share between computers using Gist. I have a GistID set up and everything.
As of right now, when I make some updates and switch to that new Gist, I have to re-download that Gist and update the existing file on my computer to have the latest updates.
It would be really nice if instead I could just execute a command like :Gist -u, it would find the GistID in the current file, fetch the latest contents from the server and just replace the contents of the file.
I guess it would be similar to :Gist XXXX command, however not requiring the need to have to type out the address manually.
Perhaps I am an idiot and there's a simple way to do this already that I couldn't get from the docs?
The text was updated successfully, but these errors were encountered:
Not sure I follow? :w would just write the selected buffer to disk.
What I am wanting is say I create file.md, write some markdown in it, save it, then call :Gist on it to create a gist.
Then I will put the GistID in the file, in a comment, I can open the file later and just run :Gist and update the online gist.
If I then goto another computer, download that latest version of the gist, make new updates, and called :Gist again, then it will add new changes to the gist. If I return to my old computer, it will not have these updates. It would be cool to open the outdated file on my computer and do something like :Gist -u and have it replace the current buffer contents with the latest version of the gist specified in the comment in GistID.
I have a file that I like to share between computers using Gist. I have a
GistID
set up and everything.As of right now, when I make some updates and switch to that new Gist, I have to re-download that Gist and update the existing file on my computer to have the latest updates.
It would be really nice if instead I could just execute a command like
:Gist -u
, it would find the GistID in the current file, fetch the latest contents from the server and just replace the contents of the file.I guess it would be similar to
:Gist XXXX
command, however not requiring the need to have to type out the address manually.Perhaps I am an idiot and there's a simple way to do this already that I couldn't get from the docs?
The text was updated successfully, but these errors were encountered: