1
- *filetype.txt* For Vim version 9.1. Last change: 2023 Dec 05
1
+ *filetype.txt* For Vim version 9.1. Last change: 2024 Feb 14
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -148,6 +148,7 @@ variables can be used to overrule the filetype used for certain extensions:
148
148
*.cls g:filetype_cls
149
149
*.csh g:filetype_csh | ft-csh-syntax |
150
150
*.dat g:filetype_dat
151
+ *.def g:filetype_def
151
152
*.f g:filetype_f | ft-forth-syntax |
152
153
*.frm g:filetype_frm | ft-form-syntax |
153
154
*.fs g:filetype_fs | ft-forth-syntax |
@@ -169,6 +170,7 @@ variables can be used to overrule the filetype used for certain extensions:
169
170
*.sh g:bash_is_sh | ft-sh-syntax |
170
171
*.tex g:tex_flavor | ft-tex-plugin |
171
172
*.typ g:filetype_typ
173
+ *.v g:filetype_v
172
174
*.w g:filetype_w | ft-cweb-syntax |
173
175
174
176
For a few filetypes the global variable is used only when the filetype could
@@ -494,7 +496,7 @@ g:changelog_new_date_format
494
496
%% insert a single '%' character
495
497
%d insert the date from above
496
498
%u insert the user from above
497
- %p insert result of b:changelog_entry_prefix
499
+ %p insert result of b:changelog_entry_prefix
498
500
%c where to position cursor when done
499
501
The default is "%d %u\n\n\t* %p%c\n\n", which produces
500
502
something like (| is where cursor will be, unless at
@@ -508,7 +510,7 @@ g:changelog_new_entry_format
508
510
The format used when creating a new entry.
509
511
The following table describes special tokens in the
510
512
string:
511
- %p insert result of b:changelog_entry_prefix
513
+ %p insert result of b:changelog_entry_prefix
512
514
%c where to position cursor when done
513
515
The default is "\t*%c", which produces something
514
516
similar to >
@@ -562,6 +564,18 @@ under it. If not found, a new entry and item is prepended to the beginning of
562
564
the Changelog.
563
565
564
566
567
+ ASCIIDOC *ft-asciidoc-plugin*
568
+
569
+ To enable | folding | use this: >
570
+ let g:asciidoc_folding = 1
571
+
572
+ To disable nesting of folded headers use this: >
573
+ let g:asciidoc_foldnested = 0
574
+
575
+ To disable folding everything under the title use this: >
576
+ let asciidoc_fold_under_title = 0
577
+
578
+
565
579
FORTRAN *ft-fortran-plugin*
566
580
567
581
Options:
@@ -610,6 +624,18 @@ The mapping can be disabled with: >
610
624
let g:no_gprof_maps = 1
611
625
612
626
627
+ JSON-FORMAT *ft-json-plugin*
628
+
629
+ JSON filetype can be extended to use 'formatexpr' and "json.FormatExpr()"
630
+ function for json formatting (using | gq | ).
631
+
632
+ Add following lines to $HOME/.vim/ftplugin/json.vim: >
633
+
634
+ vim9script
635
+ import autoload 'dist/json.vim'
636
+ setl formatexpr=json.FormatExpr()
637
+
638
+
613
639
MAIL *ft-mail-plugin*
614
640
615
641
Options:
@@ -767,6 +793,14 @@ To enable this behavior, set the following variable in your vimrc: >
767
793
let g:rst_style = 1
768
794
769
795
796
+ RNOWEB *ft-rnoweb-plugin*
797
+
798
+ The 'formatexpr' option is set dynamically with different values for R code
799
+ and for LaTeX code. If you prefer that 'formatexpr' is not set, add to your
800
+ | vimrc | : >
801
+ let rnw_dynamic_comments = 0
802
+
803
+
770
804
RPM SPEC *ft-spec-plugin*
771
805
772
806
Since the text for this plugin is rather long it has been put in a separate
0 commit comments