diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-09 19:32:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-09 19:32:39 +0200 |
commit | 1e91eafc2e19b84ea44347ea929d2791d2fdd5e3 (patch) | |
tree | 8cb13acbe84074bbbcd06f0641b92891b2e1bfa9 /runtime | |
parent | 64d662d5fc2ff8af4dbf399ff02aa9d711cc9312 (diff) |
patch 8.2.1409: nmpmrc and php.ini filetypes not recognizedv8.2.1409
Problem: Nmpmrc and php.ini filetypes not recognized.
Solution: Add filetype detection. (Doug Kearns)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 106eb37919..dfbfaabaec 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1093,6 +1093,9 @@ au BufNewFile,BufRead .netrc setf netrc " Ninja file au BufNewFile,BufRead *.ninja setf ninja +" NPM RC file +au BufNewFile,BufRead npmrc,.npmrc setf dosini + " Novell netware batch files au BufNewFile,BufRead *.ncf setf ncf @@ -1199,6 +1202,9 @@ au BufNewFile,BufRead *.pod6 setf pod6 " Also .ctp for Cake template file au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp setf php +" PHP config +au BufNewFile,BufRead php.ini,php.ini-* setf dosini + " Pike and Cmod au BufNewFile,BufRead *.pike,*.pmod setf pike au BufNewFile,BufRead *.cmod setf cmod |