summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorshane.xb.qian <shane.qian@foxmail.com>2024-04-30 20:35:53 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-30 20:35:53 +0200
commite35478bc9d48189322432248105d3b24e0efb3d0 (patch)
tree8b0092700995c9984ba15c1ed5ccfe60e49fcf6d /runtime
parent5cbc9a69e529361e1725f422b8cd6157fe0adc33 (diff)
patch 9.1.0383: filetype: .out files recognized as tex filesv9.1.0383
Problem: filetype: .out files recognized as tex files Solution: Do not set an explicit filetype until it is clear what this should be (shane.xb.qian) closes: #14670 Signed-off-by: shane.xb.qian <shane.qian@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 71b5570370..9af8e455f2 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2414,7 +2414,7 @@ au BufNewFile,BufRead texdoc.cnf setf conf
" LaTeX packages will generate some medium LaTeX files during compiling
" They should be ignored by .gitignore https://github.com/github/gitignore/blob/main/TeX.gitignore
" Sometime we need to view its content for debugging
-au BufNewFile,BufRead *.{pgf,nlo,nls,out,thm,eps_tex,pygtex,pygstyle,clo,aux,brf,ind,lof,loe,nav,vrb,ins,tikz,bbx,cbx,beamer} setf tex
+au BufNewFile,BufRead *.{pgf,nlo,nls,thm,eps_tex,pygtex,pygstyle,clo,aux,brf,ind,lof,loe,nav,vrb,ins,tikz,bbx,cbx,beamer} setf tex
" ConTeXt
au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi,*.mkxl,*.mklx setf context
@@ -2840,6 +2840,10 @@ au StdinReadPost * if !did_filetype() | runtime! scripts.vim | endif
" But before patterns matching everything in a directory.
au BufNewFile,BufRead *.text,README,LICENSE,COPYING,AUTHORS setf text
+" What should *.out files be? Text?
+" Disabled until it is clear, to what this should be set
+"au BufNewFile,BufRead *.out setf text
+
" Extra checks for when no filetype has been detected now. Mostly used for
" patterns that end in "*". E.g., "zsh*" matches "zsh.vim", but that's a Vim