Update doc

This commit is contained in:
leafOfTree
2020-12-02 15:18:02 +08:00
parent 5a32d19c40
commit fa9b8f3973

View File

@@ -137,6 +137,7 @@ Since there are many sub languages included, most delays come from syntax files
For example, the builtin syntax `sass.vim` and `less.vim` in vim8.1 runtime and `pug.vim` in vim-pug/syntax always load `css.vim` which this plugin already loads. It can be optimized like
`$VIMRUNTIME/syntax/sass.vim`
```diff
- runtime! syntax/css.vim
+ if !exists("b:current_loading_main_syntax")
@@ -144,6 +145,15 @@ For example, the builtin syntax `sass.vim` and `less.vim` in vim8.1 runtime and
+ endif
```
`$VIMRUNTIME/syntax/vue.vim`
```diff
- runtime! syntax/html.vim
+ if !exists("b:current_loading_main_syntax")
+ runtime! syntax/html.vim
+ endif
```
## Acknowledgments & Refs
- [mxw/vim-jsx][1]