{"id":20732017,"url":"https://github.com/nverno/vimscript-ts-mode","last_synced_at":"2026-02-15T19:31:33.572Z","repository":{"id":199834472,"uuid":"703857159","full_name":"nverno/vimscript-ts-mode","owner":"nverno","description":"Vim script major-mode using tree-sitter","archived":false,"fork":false,"pushed_at":"2024-10-20T00:07:58.000Z","size":167,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-07T10:38:44.122Z","etag":null,"topics":["emacs","tree-sitter","vimscript"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","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/nverno.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":"2023-10-12T03:59:35.000Z","updated_at":"2024-10-20T00:08:01.000Z","dependencies_parsed_at":"2025-01-18T00:38:51.579Z","dependency_job_id":null,"html_url":"https://github.com/nverno/vimscript-ts-mode","commit_stats":null,"previous_names":["nverno/vimscript-ts-mode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nverno/vimscript-ts-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nverno%2Fvimscript-ts-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nverno%2Fvimscript-ts-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nverno%2Fvimscript-ts-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nverno%2Fvimscript-ts-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nverno","download_url":"https://codeload.github.com/nverno/vimscript-ts-mode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nverno%2Fvimscript-ts-mode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29487449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["emacs","tree-sitter","vimscript"],"created_at":"2024-11-17T05:17:22.155Z","updated_at":"2026-02-15T19:31:33.555Z","avatar_url":"https://github.com/nverno.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vim script major mode using tree-sitter\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\nThis package provides a major-mode for vimscript using the tree-sitter \ngrammar from https://github.com/neovim/tree-sitter-vim.\n\nFeatures:\n- indentation\n- font-locking\n- imenu\n- structural navigation with treesitter objects\n\nWhen parsers are available for lua or  ruby, they will be used to parse embedded\ncode blocks.  See `lua-ts-mode`  and `ruby-ts-mode`  for more  information about\nthose parsers.\n\n![example](doc/vimscript-example.png)\n\n## Installing\n\nEmacs 29.1 or above with tree-sitter support is required. \n\nTree-sitter starter guide: https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes/tree-sitter/starter-guide?h=emacs-29\n\n### Install tree-sitter parser for vim\n\nAdd the source to `treesit-language-source-alist`. \n\n```elisp\n(add-to-list\n 'treesit-language-source-alist\n '(vim \"https://github.com/neovim/tree-sitter-vim\"))\n```\n\nOptionally, install grammars for `lua` and `ruby` to enable\nfont-locking/indentation for embedded lua / ruby code.\n\nThen run `M-x treesit-install-language-grammar` and select `vim` to install.\n\n### Install vimscript-ts-mode from melpa\n\n`M-x package-install vimscript-ts-mode`\n\n### Install vimscript-ts-mode.el from source\n\n- Clone this repository\n- Add the following to your emacs config\n\n```elisp\n(require \"[cloned nverno/vimscript-ts-mode]/vimscript-ts-mode.el\")\n```\n\n### Troubleshooting\n\nIf you get the following warning:\n\n```\n⛔ Warning (treesit): Cannot activate tree-sitter, because tree-sitter\nlibrary is not compiled with Emacs [2 times]\n```\n\nThen you do not have tree-sitter support for your emacs installation.\n\nIf you get the following warnings:\n```\n⛔ Warning (treesit): Cannot activate tree-sitter, because language grammar for vim is unavailable (not-found): (libtree-sitter-vim libtree-sitter-vim.so) No such file or directory\n```\n\nthen the vim grammar files are not properly installed on your system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnverno%2Fvimscript-ts-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnverno%2Fvimscript-ts-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnverno%2Fvimscript-ts-mode/lists"}