From 3b90ccad2dcefb4091a6d90db86cc4b5e592c54c Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Wed, 15 Jun 2022 11:32:33 +0800 Subject: [PATCH] Update --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1f2249a..36dc9f9 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,8 @@ You could install it just like other plugins. The filetype will be set to `vue`. It loads multiple syntax and indent files for `.vue` and enables them to work together -- Blocks (both `template/script/style` and custom blocks) with any syntax, including `pug, typescript, coffee, scss, sass, less, stylus, ...`. Syntax plugins need to be installed if not provided by vim -- Attribute and keyword highlight +- Blocks (both `template/script/style` and custom blocks) with any specified syntax, including `pug, typescript, coffee, scss, sass, less, stylus, ...`. Syntax plugins need to be installed if not provided by Vim +- Attribute, directive, and keyword highlight - [emmet-vim][10] `html, javascript, css, ...` filetype detection - Context-based behavior, such as to get current tag or syntax, and set local options like `commentstring` - A built-in `foldexpr` foldmethod @@ -102,7 +102,7 @@ For *boolean* options below, set `1` to enable or `0` to disable ### Example -Only for demo. Try to set syntax as little as possible for performance +Only for demo. Try to set syntax as little as possible for performance. ```vim let g:vim_vue_plugin_config = { @@ -122,7 +122,9 @@ let g:vim_vue_plugin_config = { \} ``` -You can still change options as if they are global variables +screenshot + +You can still change options as if they are global variables. ```vim let g:vim_vue_plugin_config.foldexpr = 0 @@ -132,6 +134,7 @@ Note - `typescript` matches `lang="ts"` - `list` options can be `string` if only one +- The first item of syntax list will be used if no "lang=..." - For `.wpy`, `initial_indent` defaults to `['script', 'style']` - You could check `:h dict` and `:h list` for details about the complex data types