New answers tagged filetype
5
votes
Accepted
How is filetype tex and plaintex set in vanilla Vim?
The filetype of a .tex file is determined by the content of the file.
In particular, if the first lines contains:
%&plaintex then it will be considered plaintex,
%&tex then it will be ...
Top 50 recent answers are included
Related Tags
filetype × 216autocmd × 45
vimrc × 35
syntax-highlighting × 25
neovim × 17
indentation × 16
vimscript × 15
key-bindings × 11
plugin-system × 9
filetype-tex × 9
buffers × 6
folding × 6
ftplugin × 6
formatting × 4
statusline × 4
comments × 4
filetype-markdown × 4
filetype-python × 4
ftdetect × 4
command-line × 3
gvim × 3
autocompletion × 3
functions × 3
netrw × 3
plugin-ultisnips × 3