{"id":16227629,"url":"https://github.com/leafoftree/test-repo","last_synced_at":"2026-03-18T18:32:11.126Z","repository":{"id":39640592,"uuid":"214160456","full_name":"leafOfTree/test-repo","owner":"leafOfTree","description":"Only for test purpose.","archived":false,"fork":false,"pushed_at":"2022-05-30T03:36:18.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T03:30:33.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/leafOfTree.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}},"created_at":"2019-10-10T11:05:37.000Z","updated_at":"2021-05-24T09:45:34.000Z","dependencies_parsed_at":"2022-08-28T10:10:26.164Z","dependency_job_id":null,"html_url":"https://github.com/leafOfTree/test-repo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leafOfTree/test-repo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Ftest-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Ftest-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Ftest-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Ftest-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafOfTree","download_url":"https://codeload.github.com/leafOfTree/test-repo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Ftest-repo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29628805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-10T12:53:21.056Z","updated_at":"2026-02-19T19:32:22.957Z","avatar_url":"https://github.com/leafOfTree.png","language":"Vim script","readme":"# vim-vue-plugin\n\nVim syntax and indent plugin for `.vue` files. Mainly inspired by [mxw/vim-jsx][1].\n\n## Install\n\n- Use [VundleVim][2]\n\n        Plugin 'leafOfTree/vim-vue-plugin'\n\n- Use [vim-pathogen][5]\n\n        cd ~/.vim/bundle \u0026\u0026 \\\n        git clone https://github.com/leafOfTree/vim-vue-plugin --depth 1\n\n- Use [vim-plug][7]\n\n        Plug 'leafOfTree/vim-vue-plugin'\n        :PlugInstall\n\n- Or manually, clone this plugin, drop it in custom `path/to/this_plugin`, and add it to `rtp` in vimrc\n\n        set rpt+=path/to/this_plugin\n\nThe plugin works if `filetype` is set to `vue`. Please stay up to date. Feel free to open an issue or a pull request.\n\n\n## How it works\n\nSince `.vue` is a combination of CSS, HTML and JavaScript, so is `vim-vue-plugin`. (Like XML and JavaScript for `.jsx`).\n\nSupports\n\n- Vue directives.\n- Pug with [vim-pug][4] (see Configuration).\n- Less/Sass/Scss (see Configuration).\n- Coffee with [vim-coffee-script][11] (see Configuration).\n- A builtin `foldexpr` foldmethod (see Configuration).\n- [emmet-vim][10] HTML/CSS/JavaScript filetype detection.\n- `.wpy` files from [WePY][6].\n\n## Configuration\n\nSet global variable to `1` to enable or `0` to disable.\n\nEx:\n\n    let g:vim_vue_plugin_load_full_syntax = 1\n\n| variable                              | description                                                                                            | default                    |\n|---------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|----------------------------|\n| `g:vim_vue_plugin_load_full_syntax`\\* | Enable: load all syntax files in `runtimepath` to enable related syntax plugins.\u003cbr\u003e Disable: only in `$VIMRUNTIME/syntax`, `~/.vim/syntax` and `$VIM/vimfiles/syntax` | 0 |\n| `g:vim_vue_plugin_use_pug`\\*          | Enable `vim-pug` pug syntax for `\u003ctemplate lang=\"pug\"\u003e`.                                               | 0 |\n| `g:vim_vue_plugin_use_coffee`         | Enable coffee syntax for `\u003cscript lang=\"coffee\"\u003e`.                                                     | 0 |\n| `g:vim_vue_plugin_use_less`           | Enable less syntax for `\u003cstyle lang=\"less\"\u003e`.                                                          | 0 |\n| `g:vim_vue_plugin_use_sass`           | Enable scss syntax for `\u003cstyle lang=\"scss\"\u003e`(or sass fo lang=\"sass\").                                  | 0 |\n| `g:vim_vue_plugin_has_init_indent`    | Initially indent one tab inside `style/script` tags.                                                   | 0 for `.vue`. 1 for `.wpy` |\n| `g:vim_vue_plugin_highlight_vue_attr` | Highlight vue attribute value as expression instead of string.                                         | 0 |\n| `g:vim_vue_plugin_use_foldexpr`       | Enable builtin `foldexpr` foldmethod.                                                                  | 0 |\n| `g:vim_vue_plugin_debug`              | Echo debug messages in `messages` list. Useful to debug if unexpected indents occur.                   | 0 |\n\n\\*: Vim may be slow if the feature is enabled. Find a balance between syntax highlight and speed. By the way, custom syntax could be added in `~/.vim/syntax` or `$VIM/vimfiles/syntax`.\n\n**Note**\n\n- `filetype` used to be set to `javascript.vue`, which caused `javascript` syntax to be loaded multiple times and a significant delay. Now it is `vue` so autocmds and other settings for `javascript` have to be manually enabled for `vue`.\n- `g:vim_vue_plugin_use_foldexpr` default value used to be `1`. But there are other foldmethod choices, so it's changed to `0`.\n\n## Screenshot\n\n\u003cimg alt=\"screenshot\" src=\"https://raw.githubusercontent.com/leafOfTree/leafOfTree.github.io/master/vim-vue-plugin-screenshot.png\" width=\"600\" /\u003e\n\n## Context based behavior\n\nAs there are more than one language in `.vue` file, the different behaviors like mapping or completion may be expected under different tags.\n\nThis plugin provides a function to get the tag where the cursor is in.\n\n- `GetVueTag() =\u003e String` Return value is 'template', 'script' or 'style'.\n\n### Example\n\n```vim\nautocmd FileType vue inoremap \u003cbuffer\u003e\u003cexpr\u003e : InsertColon()\n\nfunction! InsertColon()\n  let tag = GetVueTag()\n  \n  if tag == 'template'\n    return ':'\n  else\n    return ': '\n  endif\nendfunction\n```\n\n### emmet-vim\n\nCurrently emmet-vim works regarding your HTML/CSS/JavaScript emmet settings, but it depends on how emmet-vim gets `filetype` and may change in the future. Feel free to report an issue if any problem appears.\n\n## Avoid overload\n\nSince there are many sub languages included, most delays come from syntax files overload. A variable named `b:current_loading_main_syntax` is set to `vue` which can be used as loading condition if you'd like to manually find and modify the syntax files causing overload.\n\nFor example, the builtin syntax `sass.vim` and `less.vim` in vim8.1 runtime and `pug.vim` in vim-pug/syntax will always load `css.vim` which this plugin already loads. It can be optimized like\n\n```diff\n- runtime! syntax/css.vim\n+ if !exists(\"b:current_loading_main_syntax\")\n+   runtime! syntax/css.vim\n+ endif\n```\n\n## Acknowledgments \u0026 Refs\n\n- [mxw/vim-jsx][1]\n\n- [Single File Components][3]\n\n## License\n\nThis plugin is under [The Unlicense][8]. Other than this, `lib/indent/*` files are extracted from vim runtime.\n\n[1]: https://github.com/mxw/vim-jsx \"mxw: vim-jsx\"\n[2]: https://github.com/VundleVim/Vundle.vim\n[3]: https://vuejs.org/v2/guide/single-file-components.html\n[4]: https://github.com/digitaltoad/vim-pug\n[5]: https://github.com/tpope/vim-pathogen\n[6]: https://tencent.github.io/wepy\n[7]: https://github.com/junegunn/vim-plug\n[8]: https://choosealicense.com/licenses/unlicense/\n[10]: https://github.com/mattn/emmet-vim\n[11]: https://github.com/kchmck/vim-coffee-script\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Ftest-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafoftree%2Ftest-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Ftest-repo/lists"}