{"id":16586784,"url":"https://github.com/tjdevries/plib.vim","last_synced_at":"2026-03-10T03:34:59.880Z","repository":{"id":96939752,"uuid":"96364396","full_name":"tjdevries/plib.vim","owner":"tjdevries","description":"Python standard library  functions on vim objects","archived":false,"fork":false,"pushed_at":"2017-07-05T22:07:36.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T08:16:11.859Z","etag":null,"topics":[],"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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tjdevries.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":"2017-07-05T21:56:50.000Z","updated_at":"2017-07-05T21:59:06.000Z","dependencies_parsed_at":"2023-03-13T16:21:28.057Z","dependency_job_id":null,"html_url":"https://github.com/tjdevries/plib.vim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tjdevries/plib.vim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Fplib.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Fplib.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Fplib.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Fplib.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjdevries","download_url":"https://codeload.github.com/tjdevries/plib.vim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Fplib.vim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30323254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T22:52:31.397Z","updated_at":"2026-03-10T03:34:59.859Z","avatar_url":"https://github.com/tjdevries.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plib.vim\n\nPython 3 standard library functions on vim objects\n\nTo view documentation for the functions, see the [Python List Documentation](https://docs.python.org/3/tutorial/datastructures.html#more-on-lists).\n\n## Usage\n\nFirst install it and make sure it's in the runtimepath. I use vim-plug for that\n\n```vim\ncall plug#begin()\n\nPlug 'tjdevries/plib.vim'\n\ncall plug#end()\n```\n\nThen you can use it to do things with objects!\n\n```vim\nlet List = plib#List()\n\n\" This is the example shown in the Python 3 documentation\nlet fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']\n\necho List.count(fruits, 'apple')\n\" 2\n\necho List.count(fruits, 'tangerine')\n\" 0\n\necho List.index(fruits, 'banana')\n\" 3\n\n\" Find next banana starting a position 4\necho List.index(fruits, 'banana', 4)\n\" 6\n\ncall List.reverse(fruits)\necho fruits\n\" ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']\n\ncall List.append(fruits, 'grape')\necho fruits\n\" ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']\n\ncall List.sort(fruits)\necho fruits\n\" ['apple', 'apple', 'banana', 'banana', 'grape', 'kiwi', 'orange', 'pear']\n\necho List.pop(fruits)\n\" 'pear'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjdevries%2Fplib.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjdevries%2Fplib.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjdevries%2Fplib.vim/lists"}