sojohnnysaid / vim-restman

make an api call to get your token, have it saved, make other requests, all in a file using vim
MIT License
26 stars 0 forks source link

vim-http #1

Open Konfekt opened 2 weeks ago

Konfekt commented 2 weeks ago

Thank you, this is useful. Comparing to https://github.com/nicwest/vim-http, it seems that Restman supports more than one HTTP request by jumping in-between the -- markers and restricts to Curl output (no meta data)?

sojohnnysaid commented 2 weeks ago

Thanks for checking this out @Konfekt 🤓

Yes I am able to use all the API verbs, GET, POST, PATCH etc. etc. Just move the cursor within the -- markers to run that specific call.

If you take a peek at the autoload folder in the repo you will see i've commented out all the echom statements where I was logging out everything. The original output had more sections like request headers, response headers etc.

Would a flag you could add to your vim config work? I can add that to my todo list.

Konfekt commented 2 weeks ago

Yes, thank you, maybe buffer-local/global by the get(b:, 'opt', get(g:, 'opt', 'default-value)) idiom