Skip to content

Commit 40f7a88

Browse files
committed
Doc: Improve folding documentation
Related with comment in vhda#146. Should also fix vhda#214.
1 parent ed3ddd8 commit 40f7a88

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,12 @@ __Note__: Proper SystemVerilog tag generation requires development version of
7474
To enable syntax folding set the following option:
7575

7676
```VimL
77+
let g:verilog_syntax_fold_lst = "all"
7778
set foldmethod=syntax
7879
```
7980

81+
For more information check the help page `:help veriog-fold`.
82+
8083
### Verilog Compilation and Error format
8184

8285
This plugin includes the [errorformat][vim-errorformat] configurations for

doc/verilog_systemverilog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ To enable syntax folding set the following option:
151151
Take into account that all folding is disabled by default and the list of
152152
items to be folded must be configured using |g:verilog_syntax_fold_lst|.
153153

154+
The commands |VerilogFoldingAdd| and |VerilogFoldingRemove|, which support
155+
command line completion, can also be used to dynamically enable or disable
156+
folding for certain types of code.
157+
154158
------------------------------------------------------------------------------
155159
VERILOG ERROR FORMATS *verilog-efm*
156160

0 commit comments

Comments
 (0)