p00f / cphelper.nvim

Neovim helper for competitive programming. Use https://sr.ht/~p00f/cphelper.nvim instead
MIT License
133 stars 9 forks source link

Add a command to stop the server #12

Closed crookshanks003 closed 3 years ago

crookshanks003 commented 3 years ago

I mistakenly selected :CphReceive but I dont want to add new problem. So now my vim is stuck in :CphReceive. How do I stop it. esc, C-c does not work.

p00f commented 3 years ago

You can quit neovim or close the terminal window. Any unsaved changes to files are normally saved to a swapfile and you'll be able to recover them when you edit the same file again.

I'll add a CphStop command some time

11-Aug-2021 09:31:16 Pritesh @.***>:

I mistakenly selected :CphReceive but I dont want to add new problem. So now my vim is stuck in :CphReceive. How do I stop it. , does not work.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[https://github.com/p00f/cphelper.nvim/issues/12], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AIWNSZ5YJ56RTVOF7DZW7HDT4HYYXANCNFSM5B5NBSTQ]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAnSURBVHic7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAAAAAAAAAPBjRFIAASHKmKkAAAAASUVORK5CYII=###24x24:true###][Tracking image][https://github.com/notifications/beacon/AIWNSZ7ZKFGI4ZXA2C2PL5DT4HYYXA5CNFSM5B5NBST2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OMRWHHQ.gif]

p00f commented 3 years ago

:CphReceive is no longer blocking (you can use the command line after running :CphReceive). Closing neovim now closes the server because it is tied to neovim. I've also added a CphStop command but I'm not sure if it works, because the callback I give it never runs