Lines Matching +refs:shadow +refs:expand +refs:file +refs:name

1 " Vim support file to detect file types
21 \ exe "doau filetypedetect BufRead " . fnameescape(expand("<afile>:r"))
23 \ let s:name = expand("<afile>") |
24 \ let s:short = substitute(s:name, '\~$', '', '') |
25 \ if s:name != s:short && s:short != "" |
28 \ unlet! s:name s:short
30 \ if expand("<afile>:t") != "configure.in" |
31 \ exe "doau filetypedetect BufRead " . fnameescape(expand("<afile>:r")) |
37 " Pattern used to match file names which should not be inspected.
44 " file name matches ft_ignore_pat.
46 if expand("<amatch>") !~ g:ft_ignore_pat
109 " Apache style config file
112 " Apache config file
124 \ if expand("<afile>") !~? 'Makefile.am\>' | setf elf | endif
132 " Arch Inventory file
167 " can be detected from the first five lines of the file.
191 " see if file contains any asmsyntax=foo overrides. If so, change
234 " probably a Visual Basic file. Otherwise it's assumed to be "alt" filetype.
246 " IBasic file (similar to QBasic)
249 " FreeBasic file (similar to QBasic)
252 " Batch file for MSDOS.
254 " *.cmd is close to a Batch file, but on OS/2 Rexx files also use *.cmd.
258 " Batch file for 4DOS
274 " BibTeX bibliography database file
298 " Blkid cache file
419 " that case it is probably a change file.
420 " If the first line starts with # or ! it's probably a ch file.
599 " DCL (Digital Command Language - vms) or DNS zone file
656 " Elm Filter Rules file
659 " ESMTP rc file
686 " Fetchmail RC file
689 " FlexWiki - disabled, because it has side effects when a .wiki file
696 " Focus Master file (but not for auto.master)
766 " Group file
867 " Distinguish between "default" and Cproto prototype file. */
892 " Informix 4GL (source - canonical, include file, I4GL+M4 preproc.)
895 " .INI file for MSDOS
922 " Java Properties resource file (note: doesn't catch font.properties.pl)
1020 " Lynx style file (or LotusScript!)
1025 \ if expand("<afile>") !~? 'html.m4$\|fvwm2rc' | setf m4 | endif
1036 " Mailcap configuration file
1054 " Map (UMN mapserver config file)
1097 " Mercurial config (looks like generic config file)
1159 \ if executable(expand("<afile>")) != 1
1187 " Mutt setup file (also for Muttng)
1207 \ if expand("<afile>") != "read.me" && expand("<afile>") != "click.me" |
1214 " that case it is probably an nroff file: 'filetype' is set and 1 is returned.
1260 " Oracle config file
1272 " Password file
1273 au BufNewFile,BufRead /etc/passwd,/etc/passwd-,/etc/passwd.edit,/etc/shadow,/etc/shadow-,/var/backups/passwd.bak,/var/backups/shadow.bak setf passwd
1278 " Delphi project file
1323 " Also .ctp for Cake template file
1403 " Obj 3D file format
1410 " Privoxy actions file
1517 " RCS file
1540 " R Help file
1547 " R noweb file
1658 " Sendmail .mc files are actually m4. Could also be MS Message text file.
1662 " Rely on the file to start with a comment.
1667 setf m4 " Sendmail .mc file
1670 setf msmessages " MS Message text file
1674 setf m4 " Default: Sendmail .mc file
1709 " SGML catalog file
1720 func! SetFileTypeSH(name)
1721 if expand("<amatch>") =~ g:ft_ignore_pat
1724 if a:name =~ '\<csh\>'
1728 elseif a:name =~ '\<tcsh\>'
1732 elseif a:name =~ '\<ksh\>'
1740 elseif exists("g:bash_is_sh") || a:name =~ '\<bash\>' || a:name =~ '\<bash2\>'
1748 elseif a:name =~ '\<sh\>'
1760 " For shell-like file types, check for an "exec" command hidden in a comment,
1763 func! SetFileTypeShell(name)
1764 if expand("<amatch>") =~ g:ft_ignore_pat
1780 exe "setf " . a:name
1847 " SMIL or SNMP MIB file
1870 let path = expand('<amatch>:p')
1885 let dir = expand('<amatch>:p:h')
1970 " If the file has an extension of 't' and is in a directory 't' then it is
1971 " almost certainly a Perl test file.
1973 " file.
1974 " (Slow test) If a file contains a 'use' statement then it is almost certainly
1975 " a Perl file.
1977 if expand("%:e") == 't' && expand("%:p:h:t") == 't'
1992 " Tads (or Nroff or Perl test file)
2023 " 1. Check the first line of the file for "%&<format>".
2037 " Save position, go to the top of the file, find first non-comment line.
2063 " Translation from formats to file types. TODO: add AMSTeX, RevTex, others?
2138 " Viminfo file
2155 " Vgrindefs file
2179 " CVS RC file
2182 " CVS commit file
2186 " lines in a WEB file).
2225 " X resources file
2328 " Source the user-specified filetype file, for backwards compatibility with
2330 if exists("myfiletypefile") && filereadable(expand(myfiletypefile))
2336 " when there are no matching file name extensions.
2340 \ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat
2347 " script file.
2354 " Asterisk config file
2386 \ if expand("<afile>:e") == "m4"
2425 " Mutt setup file
2448 " Subversion commit file
2451 " X resources file
2479 " Generic configuration file (check this last, it's just guessing!)
2481 \ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat