PratikBhusal / vim-grip

Grip Wrapper for Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work for unnamed buffers

subnut opened this issue · comments

Suggeestion -
Use :w !grip - to input current buffer contents as stdin to grip

Personally, I do not see a reason for implementing this niche feature request. Hence, I will be closing it.

Rationale:
By piping out the current buffer as the input to grip, you lose out on the asynchronous aspect of needing to call grip only once every time you want to see changes for a given file. True, calling :w !grip - every time you want to see changes is not much more to write than :w, but it is a significant enough for me to consider it as a negative change from the norm.

I did give working with unnamed buffers a shot, but I still could not provide a valid reason nor a good workflow to using unnamed buffers over creating a new file to storage and start working from there.

With that being said, feel free to create a pull request and I'd be more than wiling to review over it.