1
- *filetype.txt* For Vim version 8.0 . Last change: 2017 Jan 04
1
+ *filetype.txt* For Vim version 8.1 . Last change: 2018 Apr 18
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -43,7 +43,7 @@ Detail: The ":filetype on" command will load one of these files:
43
43
BufNewFile and BufRead events. If the file type is not found by the
44
44
name, the file $VIMRUNTIME/scripts.vim is used to detect it from the
45
45
contents of the file.
46
- When the GUI is running or will start soon, the menu.vim script is
46
+ When the GUI is running or will start soon, the | menu.vim | script is
47
47
also sourced. See | 'go-M' | about avoiding that.
48
48
49
49
To add your own file types, see | new-filetype | below. To search for help on a
@@ -319,6 +319,10 @@ then Vim will load all plugins in these directories and below:
319
319
320
320
Note that the last one is the value of $VIMRUNTIME which has been expanded.
321
321
322
+ Note that when using a plugin manager or | packages | many directories will be
323
+ added to 'runtimepath' . These plugins earch require their own directory,
324
+ don't put them directly in ~/.vim/plugin.
325
+
322
326
What if it looks like your plugin is not being loaded? You can find out what
323
327
happens when Vim starts up by using the | -V | argument: >
324
328
@@ -353,12 +357,12 @@ define yourself. There are a few ways to avoid this:
353
357
You need to define your own mapping before the plugin is loaded (before
354
358
editing a file of that type). The plugin will then skip installing the
355
359
default mapping.
356
-
360
+ *no_mail_maps*
357
361
3. Disable defining mappings for a specific filetype by setting a variable,
358
362
which contains the name of the filetype. For the "mail" filetype this
359
363
would be: >
360
364
:let no_mail_maps = 1
361
-
365
+ < *no_plugin_maps*
362
366
4. Disable defining mappings for all filetypes by setting a variable: >
363
367
:let no_plugin_maps = 1
364
368
<
@@ -602,35 +606,17 @@ MANPAGER *manpager.vim*
602
606
The :Man command allows you to turn Vim into a manpager (that syntax highlights
603
607
manpages and follows linked manpages on hitting CTRL-] ).
604
608
605
- Works on:
606
-
607
- - Linux
608
- - Mac OS
609
- - FreeBSD
610
- - Cygwin
611
- - Win 10 under Bash
612
-
613
- Untested:
614
-
615
- - Amiga OS
616
- - BeOS
617
- - OS/2
609
+ For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
618
610
619
- For bash,zsh,ksh or dash by adding to the config file (.bashrc,.zshrc, ...)
611
+ export MANPAGER="vim -M +MANPAGER -"
620
612
621
- export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
613
+ For (t)csh, add to the config file
622
614
623
- For (t)csh by adding to the config file
615
+ setenv MANPAGER "vim -M +MANPAGER -"
624
616
625
- setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
617
+ For fish, add to the config file
626
618
627
- For fish by adding to the config file
628
-
629
- set -x MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
630
-
631
- If man sets the $MAN_PN environment variable, like man-db, the most common
632
- implementation on Linux and Mac OS, then the "env MAN_PN=1 " part above is
633
- superfluous.
619
+ set -x MANPAGER "vim -M +MANPAGER -"
634
620
635
621
PDF *ft-pdf-plugin*
636
622
@@ -653,7 +639,7 @@ By default the following options are set, in accordance with PEP8: >
653
639
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
654
640
655
641
To disable this behaviour, set the following variable in your vimrc: >
656
-
642
+
657
643
let g:python_recommended_style = 0
658
644
659
645
@@ -663,6 +649,12 @@ Since the text for this plugin is rather long it has been put in a separate
663
649
file: | pi_spec.txt | .
664
650
665
651
652
+ RUST *ft-rust*
653
+
654
+ Since the text for this plugin is rather long it has been put in a separate
655
+ file: | ft_rust.txt | .
656
+
657
+
666
658
SQL *ft-sql*
667
659
668
660
Since the text for this plugin is rather long it has been put in a separate
@@ -684,4 +676,23 @@ You can change the default by defining the variable g:tex_flavor to the format
684
676
Currently no other formats are recognized.
685
677
686
678
679
+ VIM *ft-vim-plugin*
680
+
681
+ The Vim filetype plugin defines mappings to move to the start and end of
682
+ functions with [[ and ]]. Move around comments with ]" and [".
683
+
684
+ The mappings can be disabled with: >
685
+ let g:no_vim_maps = 1
686
+
687
+
688
+ ZIMBU *ft-zimbu-plugin*
689
+
690
+ The Zimbu filetype plugin defines mappings to move to the start and end of
691
+ functions with [[ and ]].
692
+
693
+ The mappings can be disabled with: >
694
+ let g:no_zimbu_maps = 1
695
+ <
696
+
697
+
687
698
vim:tw=78:ts=8:ft=help:norl:
0 commit comments