{"id":13898495,"url":"https://github.com/nicwest/vim-http","last_synced_at":"2026-04-03T10:43:55.997Z","repository":{"id":142216047,"uuid":"66122962","full_name":"nicwest/vim-http","owner":"nicwest","description":"simple vim plugin to make http requests from buffers","archived":false,"fork":false,"pushed_at":"2023-11-16T17:56:08.000Z","size":63,"stargazers_count":139,"open_issues_count":5,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-07T18:46:38.578Z","etag":null,"topics":["curl","http","vim"],"latest_commit_sha":null,"homepage":null,"language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicwest.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-08-20T01:56:34.000Z","updated_at":"2024-07-01T08:32:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"844486ae-f2c1-4a47-add3-f064748b3260","html_url":"https://github.com/nicwest/vim-http","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicwest%2Fvim-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicwest%2Fvim-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicwest%2Fvim-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicwest%2Fvim-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicwest","download_url":"https://codeload.github.com/nicwest/vim-http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226274926,"owners_count":17598861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["curl","http","vim"],"created_at":"2024-08-06T18:04:19.383Z","updated_at":"2026-04-03T10:43:55.967Z","avatar_url":"https://github.com/nicwest.png","language":"Vim Script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/nicwest/vim-http/tree/master.svg?style=svg)](https://circleci.com/gh/nicwest/vim-http/tree/master)\n[![Powered by vital.vim](https://img.shields.io/badge/powered%20by-vital.vim-80273f.svg)](https://github.com/vim-jp/vital.vim)\n\nvim-http\n========\n\nSimple wrapper over curl and http syntax highlighting.\n\n[![asciicast](https://asciinema.org/a/120707.png)](https://asciinema.org/a/120707)\n\n\nUsage\n------\n\nWrite a raw http request\n\n```http\nGET http://httpbin.org/get HTTP/1.1\nHost: httpbin.org\nAccept: application/json\n```\n\n`:Http` will execute the request and display the response in a new buffer.\n\n`:Http!` will execute the request as above and follow any redirects.\n\n`:HttpShowCurl` displays the curl request that the plugin executes under the \nhood\n\n`:HttpShowRequest` displays the internal object representing the request\n\n`:HttpClean` will add Host and Content-Length headers\n\n`:HttpAuth` will prompt for authorization credentials\n\n\nConfiguration\n-------------\n\n`g:vim_http_clean_before_do` if set to `1` (default) will clean a request before\nsending it to curl. Disable this by setting this global to `0`\n\n`g:vim_http_additional_curl_args` can be used to provide additional arguments\nto curl.\n\n`g:vim_http_split_vertically` when set to `1` will split the window vertically\non response rather than horizontally (the default).\n\n`g:vim_http_right_below` when set to `1` split window will be open on the\nright (for vertical) or below (for horizontal).\n\n`g:vim_http_tempbuffer` when set to `1` response buffers will overwrite each\nother instead of persisting forever.\n\nHelper Methods\n--------------\n\n`http#remove_header(header)` removes all occurances of the given header in the\ncurrent buffer.\n\n`http#set_header(header, value)` sets the header to the given value in the\ncurrent buffer, removes duplicates\n\nExamples for your vimrc:\n\n```viml\nfunction! s:set_json_header() abort\n  call http#set_header('Content-Type', 'application/json')\nendfunction\n\nfunction! s:clean_personal_stuff() abort\n  call http#remove_header('Cookie')\n  call http#remove_header('Accept')\n  call http#remove_header('User-Agent')\n  call http#remove_header('Accept-Language')\nendfunction \n\nfunction! s:add_compression() abort\n  call http#set_header('Accept-Encoding', 'deflate, gzip')\n  let g:vim_http_additional_curl_args = '--compressed'\nendfunction\n\ncommand! JSON call s:set_json_header()\ncommand! Anon call s:clean_personal_stuff()\ncommand! Compression call s:add_compression()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicwest%2Fvim-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicwest%2Fvim-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicwest%2Fvim-http/lists"}