{"id":18749176,"url":"https://github.com/wolandark/vim-ddgpb","last_synced_at":"2026-01-06T12:34:05.125Z","repository":{"id":245639382,"uuid":"818833850","full_name":"wolandark/vim-ddgpb","owner":"wolandark","description":"Search DuckDuckGo or Submit Code to PasteBin from Vim","archived":false,"fork":false,"pushed_at":"2024-07-21T23:21:04.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T17:43:34.606Z","etag":null,"topics":["pastebin","vim","vim-plugin","vim9-plugin","vim9script"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wolandark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2024-06-23T02:24:18.000Z","updated_at":"2025-03-04T00:45:44.000Z","dependencies_parsed_at":"2024-07-22T00:21:11.238Z","dependency_job_id":"dbdc762e-1aaa-4213-ae0b-b75e74d8c5fe","html_url":"https://github.com/wolandark/vim-ddgpb","commit_stats":null,"previous_names":["wolandark/vim-ddg","wolandark/vim-ddgpb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandark%2Fvim-ddgpb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandark%2Fvim-ddgpb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandark%2Fvim-ddgpb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandark%2Fvim-ddgpb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolandark","download_url":"https://codeload.github.com/wolandark/vim-ddgpb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647257,"owners_count":21139081,"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":["pastebin","vim","vim-plugin","vim9-plugin","vim9script"],"created_at":"2024-11-07T17:06:38.625Z","updated_at":"2026-01-06T12:34:00.093Z","avatar_url":"https://github.com/wolandark.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-ddgpb\nThis plugin with it's horrible name does two things:\n- Search DuckDuckGo from Vim (in system GUI browser or in a tmux pane using w3m)\n  - With word under the cursor\n  - with visual selection\n- Submit the visual selection to 0x0.st pastebin \n\n# Dependency\nThis plugin doesn't depend on anything other than the `xdg-open`, `curl` and Vim9 or newer. \u003cbr\u003e\n\nHowever, if you want to use a terminal browser for your search, you should also get tmux and w3m browser. Naturally you must be in a tmux session for those functions to work.\n\nThis plugin is written in vim9script and therefore requires Vim 9.0+. \u003cbr\u003e You can check wether your Vim has vim9script support with  `echo has('vim9script')`. \u003cbr\u003e\nIf Vim returns `1`, then you have what this plugin needs.\n\n# Install vim-ddgpb\nuse your favorite plugin manager, \u003cbr\u003e or:\n```\ngit clone https://github.com/wolandark/vim-ddgpb.git ~/.vim/pack/plugins/start/vim-ddgpb\n```\n\nor for on-demand loading of the plugin:\n\n```\ngit clone https://github.com/wolandark/vim-ddgpb.git ~/.vim/pack/plugins/opt/vim-ddgpb\n```\nfor on-deman loading do:\n\n`:packadd vim-ddgpb` \n\n# Usage\nPut your cursor on a word and press the `\u003cF3\u003e` key to search duckduckgo for the word under the cursor. \n\nPut your cursor on a word and press the `\u003cF4\u003e` key to search duckduckgo for the word under the cursor in a tmux pane using w3m terminal browser. \n\nSelect visually and press `\u003cF7\u003e` to search duckduckgo for the content of the visual selection.\n\nSelect visually and press `\u003cF8\u003e` to search duckduckgo for the content of the visual selection in a tmux pane using w3m terminal browser.\n\nSelect visually and press `\u003cF12\u003e` to submit the content of the visual selection to 0x0.st pastebin service.\n\n# DDG() and DDGV()\n![output-ddg-2](https://github.com/wolandark/vim-ddg/assets/107309764/03e05a9b-4475-4c18-b9b0-d9cb48ecf354)\n\n# DDGT() and DDGVT()\nhttps://github.com/user-attachments/assets/c54f5fec-ee97-414f-8131-4c553781a703\n# Binit()\n![Peek 2024-06-24 01-51](https://github.com/wolandark/vim-ddgpb/assets/107309764/45c579ea-ac12-4c65-b6cf-dc09c59b70c9)\n\nHere I'm using tmux-fzf-url plugin in tmux to access the url and open it in the browser directly. \u003cbr\u003e\n\nHowever vim-ddgpb copies the url to the plus register by default. So you can paste it anywhere.\n\nyou can always get the link from `:messages` too \u003cbr\u003e\n\nFor example:  \u003cbr\u003e\n\n`:redir @a | 1messages | redir END`\n\nto send the last msg to the `a` register.\n\n# Enjoy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolandark%2Fvim-ddgpb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolandark%2Fvim-ddgpb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolandark%2Fvim-ddgpb/lists"}