mattn / mattn/vim-gist

Update a local copy don't works at second time

Open
#237 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.7k
Forks
130
PR merge metrics
No merged PRs in 30d

Description

Overview

When I want write to my local disk on an opened Gist it only works the first time. The second time I only have a Gist update and I can't save changes in my local. How I do it?

Reproduce:

:Gist -l
choose an old gist
make some changes
:w! ~/xxx/my_local_gist_copy   <== it works fine, write in my local
:w! ~/xxx/my_local_gist_copy   <== it only update the Gist
:w!                            <== it only update the Gist

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the sequence from the issue: open an older Gist with :Gist -l, edit it, and run :w! ~/xxx/my_local_gist_copy twice, followed by :w!. Trace the Vim write handling and Gist update path; done means repeated writes continue to save the edited content to the local copy as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.