Mercurial > vim
diff runtime/filetype.vim @ 16364:db8f57e3e9f5 v8.1.1187
patch 8.1.1187: cannot recognize Pipfile
commit https://github.com/vim/vim/commit/3a4c53ba51c01b8fea68972453a71c55cf32edbe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 19 23:33:14 2019 +0200
patch 8.1.1187: cannot recognize Pipfile
Problem: Cannot recognize Pipfile.
Solution: Use existing filetypes. (Charles Ross, closes https://github.com/vim/vim/issues/4280)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 19 Apr 2019 23:45:04 +0200 |
parents | d24e5d848a09 |
children | a6c073fa99e1 |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2019 Mar 26 +" Last Change: 2019 Apr 19 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -1174,6 +1174,10 @@ au BufNewFile,BufRead *.rcp setf pilrc " Pine config au BufNewFile,BufRead .pinerc,pinerc,.pinercex,pinercex setf pine +" Pipenv Pipfiles +au BufNewFile,BufRead Pipfile setf config +au BufNewFile,BufRead Pipfile.lock setf json + " PL/1, PL/I au BufNewFile,BufRead *.pli,*.pl1 setf pli @@ -1863,7 +1867,8 @@ au BufNewFile,BufRead *.xmi setf xml au BufNewFile,BufRead *.csproj,*.csproj.user setf xml " Qt Linguist translation source and Qt User Interface Files are XML -au BufNewFile,BufRead *.ts,*.ui setf xml +" However, for .ts Typescript is more common. +au BufNewFile,BufRead *.ui setf xml " TPM's are RDF-based descriptions of TeX packages (Nikolai Weibull) au BufNewFile,BufRead *.tpm setf xml