{"id":26084223,"url":"https://github.com/syusui-s/scrapbox-vim","last_synced_at":"2025-04-12T00:50:25.620Z","repository":{"id":144911388,"uuid":"205882384","full_name":"syusui-s/scrapbox-vim","owner":"syusui-s","description":"scrapbox syntax plugin for vim","archived":false,"fork":false,"pushed_at":"2022-06-03T16:08:27.000Z","size":14,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T20:33:06.092Z","etag":null,"topics":["scrapbox","vim","vim-syntax"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syusui-s.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":"2019-09-02T15:09:38.000Z","updated_at":"2025-02-12T18:26:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd671290-7a3d-4e22-8984-1b4d685a46b9","html_url":"https://github.com/syusui-s/scrapbox-vim","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/syusui-s%2Fscrapbox-vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syusui-s%2Fscrapbox-vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syusui-s%2Fscrapbox-vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syusui-s%2Fscrapbox-vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syusui-s","download_url":"https://codeload.github.com/syusui-s/scrapbox-vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501901,"owners_count":21114681,"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":["scrapbox","vim","vim-syntax"],"created_at":"2025-03-09T04:51:04.878Z","updated_at":"2025-04-12T00:50:25.614Z","avatar_url":"https://github.com/syusui-s.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"scrapbox-vim\n======\n\n![image](https://user-images.githubusercontent.com/1228033/165723282-124f4294-4f50-4eee-8bde-3edee215a7f5.png)\n\n## 機能\n* ファイルタイプ検知 (`.scrapbox`)\n* Syntax highlight\n\n## 必要要件\n\n```vim\nfiletype plugin on\n```\n\n## インストール方法\n\nruntimepathに加えるか、各種プラグイン管理ツールを使用してください。\n\nVim-plug:\n\n```\nPlug 'syusui-s/scrapbox-vim', { 'for': 'scrapbox' }\n```\n\ndein.vim:\n\n```vim\ncall dein#add('syusui-s/scrapbox-vim')\n```\n\ndein.vim(TOML):\n\n```toml\n[[plugins]]\nrepo = 'syusui-s/scrapbox-vim'\non_ft = 'scrapbox'\n```\n\n## オススメ設定\n### インデント表示\nインデント可視化プラグインを導入しておくと、リストが見やすくなります。\n\n* [Yggdroot/indentLine](https://github.com/Yggdroot/indentLine)\n* [nathanaelkane/vim-indent-guides](https://github.com/nathanaelkane/vim-indent-guides)\n\n### context_filetype 設定例\n[Shougo/context_filetype.vim: Context filetype library for Vim script](https://github.com/Shougo/context_filetype.vim)の設定例です。\n\n※ 私は [osyo-manga/vim-precious: Vim constext filetype](https://github.com/osyo-manga/vim-precious)と組み合わせて使っています\n\n拡張子がそのままfiletypeとして使われる設定になっています。\n\n```vim\nlet g:context_filetype#filetypes = {\n  \\   'scrapbox': [\n  \\     {\n  \\       'start' : '^\\(\\s*\\)code:[^.]*\\.\\(\\w\\+\\)',\n  \\       'end' : '^\\1\\(\\s\\)\\@!',\n  \\       'filetype' : '\\2',\n  \\     }\n  \\   ]\n  \\ }\n```\n\n拡張子とファイルタイプのマップを用意して動的に生成することもできます。\n\n```vim\nlet g:context_filetype#filetypes = {}\n\nlet filetype_map = {\n  \\ 'js': 'javascript',\n  \\ 'rs': 'rust',\n  \\ 'fs': 'fsharp',\n  \\ 'fsx': 'fsharp',\n  \\}\n\nlet scrapbox = []\nfor ext in keys(filetype_map)\n  let def = {\n    \\   'start' : '^\\(\\s*\\)code:[^.]*\\.' . ext,\n    \\   'end' : '^\\1\\(\\s\\)\\@!',\n    \\   'filetype' : filetype_map[ext],\n    \\ }\n  call add(scrapbox, def)\nendfor\n\nlet g:context_filetype#filetypes = {}\nlet g:context_filetype#filetypes['scrapbox'] = scrapbox\n```\n\n## ライセンス\n\n\u003cp xmlns:dct=\"http://purl.org/dc/terms/\" xmlns:vcard=\"http://www.w3.org/2001/vcard-rdf/3.0#\" lang=\"en\"\u003e\n  \u003ca rel=\"license\"\n     href=\"http://creativecommons.org/publicdomain/zero/1.0/\"\u003e\n    \u003cimg src=\"http://i.creativecommons.org/p/zero/1.0/88x31.png\" style=\"border-style: none;\" alt=\"CC0\" /\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n  To the extent possible under law,\n  \u003ca rel=\"dct:publisher\" href=\"https://github.com/syusui-s/scrapbox-vim\"\u003e\u003cspan property=\"dct:title\"\u003eSyusui Moyatani\u003c/span\u003e\u003c/a\u003e\n  has waived all copyright and related or neighboring rights to\n  \u003cspan property=\"dct:title\"\u003escrapbox-vim\u003c/span\u003e.\n  This work is published from:\n  \u003cspan property=\"vcard:Country\" datatype=\"dct:ISO3166\" content=\"JP\" about=\"https://github.com/syusui-s/scrapbox-vim\"\u003e日本\u003c/span\u003e.\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyusui-s%2Fscrapbox-vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyusui-s%2Fscrapbox-vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyusui-s%2Fscrapbox-vim/lists"}