Install for Vim with winget
Install prerequisites
Install and configure one of the following Vim plugins:
- ALE - Asynchronous Lint Engine v2.1.1 or newer, or version v3.0.0 or newer
- coc.nvim - Conquer of Completion v0.0.80 or newer
Install quick-lint-js
quick-lint-js has a winget package, making it easy to install the CLI and LSP server on Windows.
In order to install quick-lint-js' winget package, you must first install winget. winget is included in Windows 11 and can be installed on Windows 10.
Open a command prompt or PowerShell window. Run the following command to install quick-lint-js:
winget install quick-lint-js
Install Vim plugin
Install this plugin with your favorite Vim packaging system:
- Vim package (built into Vim 8.0 and newer)
- Pathogen
- Vim-Plug
- Vundle
Install as a Vim package
This option requires Vim 8.0 or newer.
- Download the quick-lint-js Vim plugin.
-
Add
packloadallto your%USERPROFILE%\_vimrcfile (or%USERPROFILE%\vimfiles\vimrc) if not already present. -
Create the directory
%USERPROFILE%\vimfiles\pack\external\start\. -
Copy the extracted
quick-lint-js.vimdirectory into the%USERPROFILE%\vimfiles\pack\external\start\directory. - Restart Vim.
Install with Pathogen
This option requires Pathogen.
- Download the quick-lint-js Vim plugin.
-
Copy the extracted
quick-lint-js.vimdirectory into the%USERPROFILE%\vimfiles\bundle\directory. - Restart Vim.
Install with Vim-Plug
This option requires Vim-Plug.
-
Add the following line to your
vimrcfile betweencall plug#begin(...)andcall plug#end():Plug 'quick-lint/quick-lint-js', {'rtp': 'plugin/vim/quick-lint-js.vim', 'tag': '2.11.0'} - Restart Vim.
- In Vim, run
:PlugInstall.
Install with Vundle
This option requires Vundle.
Using Vundle is not recommended. Vundle doesn't support version pinning. We recommend using a different Vim plugin manager.
-
Add the following line to your
vimrcfile betweencall vundle#begin(...)andcall vundle#end():Plugin 'quick-lint/quick-lint-js', {'rtp': 'plugin/vim/quick-lint-js.vim'} - Restart Vim.
- In Vim, run
:PluginInstall.
Configure
Configure the Vim plugin by opening Vim and running :help quick-lint-js, or read the Vim plugin docs online.