mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 20:43:52 -05:00
Document how to install with vim8 packages
This commit is contained in:
@@ -32,10 +32,11 @@ Optionally download one of the [releases](https://github.com/sheerun/vim-polyglo
|
|||||||
You can also use Vim 8 built-in package manager:
|
You can also use Vim 8 built-in package manager:
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir -p ~/.vim/pack/default/start
|
git clone --depth 1 https://github.com/sheerun/vim-polyglot ~/.vim/pack/plugins/opt/sheerun/vim-polyglot
|
||||||
git clone https://github.com/sheerun/vim-polyglot ~/.vim/pack/default/start/vim-polyglot
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**And then add `packload` command to your `.vimrc`** (or `packadd sheerun/vim-polyglot`)
|
||||||
|
|
||||||
NOTE: Not all features of individual language packs are available. We strip them from functionality slowing vim startup (for example we ignore `plugins` folder that is loaded regardless of file type, instead we prefer `ftplugin` which is loaded lazily).
|
NOTE: Not all features of individual language packs are available. We strip them from functionality slowing vim startup (for example we ignore `plugins` folder that is loaded regardless of file type, instead we prefer `ftplugin` which is loaded lazily).
|
||||||
|
|
||||||
If you need full functionality of any plugin, please use it directly with your plugin manager.
|
If you need full functionality of any plugin, please use it directly with your plugin manager.
|
||||||
|
|||||||
9
plugin/polyglot.vim
Normal file
9
plugin/polyglot.vim
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
if !exists("did_load_polyglot")
|
||||||
|
if expand("<sfile>:p") =~# '/pack/' && (exists("did_load_filetypes") || exists("did_indent_on"))
|
||||||
|
echohl WarningMsg
|
||||||
|
echo "Improper install of vim-polyglot. Please add 'packload' to .vimrc"
|
||||||
|
echohl None
|
||||||
|
end
|
||||||
|
filetype plugin indent on
|
||||||
|
syntax enable
|
||||||
|
endif
|
||||||
Reference in New Issue
Block a user