{"id":16928713,"url":"https://github.com/gokcehan/vim-opex","last_synced_at":"2025-04-11T17:50:22.601Z","repository":{"id":74307737,"uuid":"113779207","full_name":"gokcehan/vim-opex","owner":"gokcehan","description":"Vim operators to execute text objects","archived":false,"fork":false,"pushed_at":"2019-10-21T17:12:24.000Z","size":10,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T13:46:09.125Z","etag":null,"topics":["nvim","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gokcehan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-12-10T20:00:41.000Z","updated_at":"2024-04-19T14:50:03.000Z","dependencies_parsed_at":"2023-03-11T17:01:00.666Z","dependency_job_id":null,"html_url":"https://github.com/gokcehan/vim-opex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokcehan%2Fvim-opex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokcehan%2Fvim-opex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokcehan%2Fvim-opex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokcehan%2Fvim-opex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gokcehan","download_url":"https://codeload.github.com/gokcehan/vim-opex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248455226,"owners_count":21106590,"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":["nvim","vim","vim-plugin"],"created_at":"2024-10-13T20:37:28.754Z","updated_at":"2025-04-11T17:50:22.592Z","avatar_url":"https://github.com/gokcehan.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-opex\n\nOpex is a simple plugin that defines two custom operators to execute text objects (`:h motion.txt`).\nFirst execution operator executes the code and displays any output in messages (`:h message.txt`).\nSecond appending operator executes the code and appends any output as a comment below the text object.\n\n![demo-screencast](https://media.giphy.com/media/LQoJz806qfhJ79UiS8/giphy.gif)\n\n## Languages\n\nFollowing languages are supported with their corresponding interfaces:\n\n- lua (`:h if_lua.txt`)\n- perl (`:h if_perl.txt`)\n- python (`:h if_pyth.txt`)\n- ruby (`:h if_ruby.txt`)\n- scheme (`:h if_mzsch.txt`)\n- tcl (`:h if_tcl.txt`)\n- sh (`:h system()`)\n- vim (`:h execute()`)\n\nOpex is automatically loaded if you have the required feature enabled in vim (e.g. `+lua` for lua files).\nIf you have installed vim from a repository, you are likely missing most of these features.\nTherefore, you may need to compile vim from source with corresponding features enabled at compile time.\n\n## Installation\n\nDrop `autoload/opex.vim` to `~/.vim/autoload` and any of the files under `ftplugin` to `~/.vim/ftplugin`.\n\nIf you are using vim8 you can simply clone this repository as such (`:h packages`):\n\n    mkdir -p ~/.vim/pack/plugins/start\n    cd ~/.vim/pack/plugins/start\n    git clone https://github.com/gokcehan/vim-opex.git\n\nIf you are using another plugin manager you should know what to do.\n\n## Configuration\n\nYou can configure mappings for execution (default `gx`) and appending (default `gz`) as below:\n\n    nmap ge  \u003cplug\u003e(opex-execute)\n    vmap ge  \u003cplug\u003e(opex-execute)\n    nmap gee \u003cplug\u003e(opex-execute-line)\n\n    nmap ga  \u003cplug\u003e(opex-append)\n    vmap ga  \u003cplug\u003e(opex-append)\n    nmap gaa \u003cplug\u003e(opex-append-line)\n\nIf you want to disable opex for a specific filetype you can use the following:\n\n    let b:loaded_opex_lua = 1\n\nYou can change the value of `commentstring` option to configure output style:\n\n    autocmd Filetype lua setlocal commentstring=--[[%s]]\n\n## Known Issues\n\n- Any limitation on the builtin interpreter also applies to opex (e.g. gui, threading).\n- If you accidentally execute an infinite loop, you may need to manually kill the vim process.\n- If you crash the interpreter somehow, plugins that use the same interface may stop working until you restart vim.\n\n## License\n\nPublic domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgokcehan%2Fvim-opex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgokcehan%2Fvim-opex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgokcehan%2Fvim-opex/lists"}