comparison runtime/doc/filetype.txt @ 12756:3b26420fc639

Long overdue runtime update. commit https://github.com/vim/vim/commit/01164a6546b4c635daf96a1f17d1cb2d07f32a66 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 2 22:58:42 2017 +0100 Long overdue runtime update.
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2017 23:00:08 +0100
parents 214f228718cf
children f690da1b3c04
comparison
equal deleted inserted replaced
12755:3529eea08ad9 12756:3b26420fc639
1 *filetype.txt* For Vim version 8.0. Last change: 2017 Mar 28 1 *filetype.txt* For Vim version 8.0. Last change: 2017 Oct 10
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
41 VMS $VIMRUNTIME/filetype.vim 41 VMS $VIMRUNTIME/filetype.vim
42 This file is a Vim script that defines autocommands for the 42 This file is a Vim script that defines autocommands for the
43 BufNewFile and BufRead events. If the file type is not found by the 43 BufNewFile and BufRead events. If the file type is not found by the
44 name, the file $VIMRUNTIME/scripts.vim is used to detect it from the 44 name, the file $VIMRUNTIME/scripts.vim is used to detect it from the
45 contents of the file. 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 also sourced. See |'go-M'| about avoiding that. 47 also sourced. See |'go-M'| about avoiding that.
48 48
49 To add your own file types, see |new-filetype| below. To search for help on a 49 To add your own file types, see |new-filetype| below. To search for help on a
50 filetype prepend "ft-" and optionally append "-syntax", "-indent" or 50 filetype prepend "ft-" and optionally append "-syntax", "-indent" or
51 "-plugin". For example: > 51 "-plugin". For example: >
605 Works on: 605 Works on:
606 606
607 - Linux 607 - Linux
608 - Mac OS 608 - Mac OS
609 - FreeBSD 609 - FreeBSD
610 - OpenBSD
610 - Cygwin 611 - Cygwin
611 - Win 10 under Bash 612 - Win 10 under Bash
612 613
613 Untested: 614 Untested:
614 615
617 - OS/2 618 - OS/2
618 619
619 For bash,zsh,ksh or dash by adding to the config file (.bashrc,.zshrc, ...) 620 For bash,zsh,ksh or dash by adding to the config file (.bashrc,.zshrc, ...)
620 621
621 export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -" 622 export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
623
624 On OpenBSD:
625
626 export MANPAGER="env MAN_PN=1 vim -M +MANPAGER"
622 627
623 For (t)csh by adding to the config file 628 For (t)csh by adding to the config file
624 629
625 setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -" 630 setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
626 631