{"id":16227642,"url":"https://github.com/leafoftree/vim-preview","last_synced_at":"2026-01-03T06:53:51.452Z","repository":{"id":38372875,"uuid":"222904294","full_name":"leafOfTree/vim-preview","owner":"leafOfTree","description":"Open browser to preview files in current directory from vim","archived":false,"fork":false,"pushed_at":"2024-07-16T09:46:10.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T18:48:18.170Z","etag":null,"topics":["file","image","preview","vim"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-20T09:50:34.000Z","updated_at":"2024-07-16T09:46:09.000Z","dependencies_parsed_at":"2024-10-27T20:45:52.785Z","dependency_job_id":null,"html_url":"https://github.com/leafOfTree/vim-preview","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/leafOfTree%2Fvim-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fvim-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fvim-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fvim-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafOfTree","download_url":"https://codeload.github.com/leafOfTree/vim-preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989730,"owners_count":20379648,"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":["file","image","preview","vim"],"created_at":"2024-10-10T12:53:23.611Z","updated_at":"2026-01-03T06:53:51.422Z","avatar_url":"https://github.com/leafOfTree.png","language":"JavaScript","readme":"# Vim-preview\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"screenshot\" src=\"https://raw.githubusercontent.com/leafOfTree/leafOfTree.github.io/master/vim-preview-screenshot.png\" width=\"400\" /\u003e\n\u003c/p\u003e\n\nOpen browser to preview files in current directory from vim.\n\n## Installation\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ca\u003eHow to install\u003c/a\u003e\u003c/summary\u003e\n\n- [VundleVim][2]\n\n        Plugin 'leafOfTree/vim-preview'\n\n- [vim-pathogen][5]\n\n        cd ~/.vim/bundle \u0026\u0026 \\\n        git clone https://github.com/leafOfTree/vim-preview --depth 1\n\n- [vim-plug][7]\n\n        Plug 'leafOfTree/vim-preview'\n        :PlugInstall\n\n- Or manually, clone this plugin to `path/to/this_plugin`, and add it to `rtp` in vimrc\n\n        set rtp+=path/to/this_plugin\n\n\u003cbr /\u003e\n\u003c/details\u003e\n\n## Usage\n\nOpen any file in vim and call `:Preview`.\n\n## Configuration\n\nSet global variable to customize specific feature:\n\n    let g:preview_image_filetypes = 'png,apng,jpg,jpeg,webp,ico,bmp,gif,svg'\n\n| variable                     | description                                 | default                                                                  |\n|------------------------------|---------------------------------------------|--------------------------------------------------------------------------|\n| `g:preview_open_browser`     | Command to open browser with generated html | Mac: 'open',\u003cbr\u003eLinux: 'xdg-open',\u003cbr\u003ewin32: 'start cmd /c start chrome' |\n| `g:preview_image_filetypes`  | Filetypes to preview with `\u003cimg\u003e`           | 'png,apng,jpg,jpeg,webp,ico,bmp,gif,svg'                                 |\n| `g:preview_video_filetypes`  | Filetypes to preview with `\u003cvideo\u003e`         | 'mp4,webm,ogg'                                                           |\n| `g:preview_audio_filetypes`  | Filetypes to preview with `\u003caudio\u003e`         | 'mp3,wav'                                                                |\n| `g:preview_object_filetypes` | Filetypes to preview with `\u003cobject\u003e`        | 'pdf,swf'                                                                |\n\n## Development\n\nThe preview page at `./public/index.html` that is based on React. Run\n\n    npm install \n    npm start\n\nThen call `:Preview` . You can check `src/index.js`, `src/index.css` and `public/index.html` first.\n\n[2]: https://github.com/VundleVim/Vundle.vim\n[5]: https://github.com/tpope/vim-pathogen\n[7]: https://github.com/junegunn/vim-plug\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Fvim-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafoftree%2Fvim-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Fvim-preview/lists"}