{"id":18749197,"url":"https://github.com/wolandark/vim-live-server","last_synced_at":"2025-08-21T15:33:00.348Z","repository":{"id":168436947,"uuid":"644156539","full_name":"wolandark/vim-live-server","owner":"wolandark","description":"A live web server for Vim/NeoVim - see your changes in real time","archived":false,"fork":false,"pushed_at":"2024-08-21T11:27:57.000Z","size":59,"stargazers_count":45,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-10T01:41:35.021Z","etag":null,"topics":["browser-sync","live-server","liveserver","neovim","neovim-plugin","vim","vim-plugin","webserver"],"latest_commit_sha":null,"homepage":"https://wolandark.github.io/vim-live-server/","language":"Vim Script","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/wolandark.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":"2023-05-23T00:08:32.000Z","updated_at":"2024-12-04T13:27:23.000Z","dependencies_parsed_at":"2024-01-05T04:20:30.787Z","dependency_job_id":"fcc5c0c8-84e3-4394-8d16-97c5d0be9a07","html_url":"https://github.com/wolandark/vim-live-server","commit_stats":null,"previous_names":["wolandark/browser-sync"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandark%2Fvim-live-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandark%2Fvim-live-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandark%2Fvim-live-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandark%2Fvim-live-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolandark","download_url":"https://codeload.github.com/wolandark/vim-live-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230520394,"owners_count":18238948,"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":["browser-sync","live-server","liveserver","neovim","neovim-plugin","vim","vim-plugin","webserver"],"created_at":"2024-11-07T17:06:41.519Z","updated_at":"2024-12-20T01:16:09.175Z","avatar_url":"https://github.com/wolandark.png","language":"Vim Script","readme":"# Vim Live Server\n## Preview your web development in your browser in real time.\nA dead-simple live server for Vim/NeoVim \u003cbr\u003e\nSupporting [live-server](https://www.npmjs.com/package/live-server) and [browser-sync](https://www.npmjs.com/package/browser-sync).\n\n# Index\n- [Dependency](#dependency)\n- [Installation](#installation)\n  - [Using Vim packages](#using-vim-packages)\n  - [Using vim-plug](#using-vim-plug)\n  - [Using Vundle](#using-vundle)\n  - [Using Pathogen](#using-pathogen)\n- [Usage](#usage)\n- [Optional keybindings](#optional-keybindings)\n- [Demo](#demo)\n- [Note on Two Backends](#note-on-two-backends)\n- [Contact me](#contact-me)\n- [Contribution Guide](#contribution-guide)\n\n\n## Dependency\n- nodejs \n- npm\n\nInstall either the `live-server` or the `browser-sync` package globally using npm:\n```\nsudo npm install -g live-server\nsudo npm install -g browser-sync\n```\n\n# Installation\nUse your favorite Vim plugin manager to install [vim-live-server](https://github.com/wolandark/vim-live-server).\n\n#### Using Vim [packages](https://vimhelp.org/repeat.txt.html#packages)\t\n\n(**needs Vim 8+**)\n```\ngit clone https://github.com/wolandark/vim-live-server.git ~/.vim/pack/plugins/start/vim-live-server/\n```\n#### Using [vim-plug](https://github.com/junegunn/vim-plug)\n\nAdd the following line to your plugin configuration in your .vimrc file:\n```\nPlug 'https://github.com/wolandark/vim-live-server.git'\n```\nWith vimplug you can use one of these alternative commands that uses a post-installation hook to download the live-server or the browser-sync package from npm automatically:\n\n```\nPlug 'https://github.com/wolandark/vim-live-server.git', { 'do': 'sudo npm install -g live-server' }\nPlug 'https://github.com/wolandark/vim-live-server.git', { 'do': 'sudo npm install -g browser-sync' }\n```\n\n#### Using [Vundle](https://github.com/VundleVim/Vundle.vim)\n\n```\nPlugin 'https://github.com/wolandark/vim-live-server.git'\n```\n\n#### Using [Pathogen](https://github.com/tpope/vim-pathogen)\n\nClone the vim-live-server repository into your Vim bundle directory:\n```\ncd ~/.vim/bundle\ngit clone https://github.com/wolandark/vim-live-server.git\n```\n\n# Usage\nOpen your index.html file in vim and issue the following in ex-mode. live-server will start and bind itself to `localhost:8080` and `browser-sync` will bind to `localhost:3000`.\u003cbr\u003e\n_Notice that all of the commands use pascal case_\u003cbr\u003e\n```\nStartLiveServer\n\nor\n\nStartBrowserSync\n```\nVim Live Server opens your default browser automatically. \u003cbr\u003e\n\nTo start serving on a specific port, use:\n```\nStartLiveServerOnPort N\nStartLiveServerOnPort 2222\n\nStartBrowserSyncOnPort N\nStartBrowserSyncOnPort 3001\n```\n\nTo kill the server on the default port 3000 use this:\n```\nKillLiveServer\n\nKillBrowserSync\n```\nUse this command to kill the server on a certain port:\n```\nKillLiveServerOnPort N\nKillLiveServerOnPort 2222\n\nKillBrowserSyncOnPort N\nKillBrowserSyncOnPort 3001\n```\n_Note:\nvim-live-server will kill all running instances of live-server and browser-sync on [VimLeave](https://vimhelp.org/autocmd.txt.html#VimLeave)._\n\n# Optional keybindings\n```\nnmap \u003cF2\u003e :StartLiveServer \u003cCR\u003e\nnmap \u003cF3\u003e :KillLiveServer \u003cCR\u003e\n\nnmap \u003cF2\u003e :StartBrowserSync \u003cCR\u003e\nnmap \u003cF3\u003e :KillBrowserSync \u003cCR\u003e\n```\n\n\u003ch1 align=\"center\"\u003eThats it! Enjoy!\u003c/h1\u003e\n\n# Demo\nhttps://github.com/wolandark/browser-sync/assets/107309764/218cb8a0-459a-43cd-a987-1b43d1fb2b92\n\n# Note on Two Backends\nVim Live Server offers flexibility by supporting two backend options: `live-server` and `browser-sync`. However, users need to install and use only one of them, depending on their preferences and requirements.\n\nThe inclusion of `live-server` is motivated by its straightforward and efficient approach, and a 'no-nonsense' nature. Notably, it avoids resetting the scroll position on reload, providing a seamless experience during development.\n\nChoose the backend that best aligns with your workflow and and enjoy using you favorite editor for development.\n\n# Contribution Guide\nPlease follow contribution conventions when submiting pull requests. See [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) for more information.\n\n# Contact me\nFeel free to reach out on Telegram or email for support, feedback, or contributions.\n\n[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge\u0026logo=telegram\u0026logoColor=white)](https://t.me/wolandarkside)\n[![Protonmail](https://img.shields.io/badge/ProtonMail-8B89CC?style=for-the-badge\u0026logo=protonmail\u0026logoColor=white)](mailto:contact-woland@proton.me)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolandark%2Fvim-live-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolandark%2Fvim-live-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolandark%2Fvim-live-server/lists"}