Mercurial > vim
comparison runtime/autoload/dist/ft.vim @ 14668:34fd018452ed
Update runtime files.
commit https://github.com/vim/vim/commit/20aac6c1126988339611576d425965a25a777658
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 2 21:07:30 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 02 Sep 2018 21:15:05 +0200 |
parents | a6d3e2081544 |
children | 2b30a2b4bde2 |
comparison
equal
deleted
inserted
replaced
14667:289d3fac3399 | 14668:34fd018452ed |
---|---|
630 endfunc | 630 endfunc |
631 | 631 |
632 " Choose context, plaintex, or tex (LaTeX) based on these rules: | 632 " Choose context, plaintex, or tex (LaTeX) based on these rules: |
633 " 1. Check the first line of the file for "%&<format>". | 633 " 1. Check the first line of the file for "%&<format>". |
634 " 2. Check the first 1000 non-comment lines for LaTeX or ConTeXt keywords. | 634 " 2. Check the first 1000 non-comment lines for LaTeX or ConTeXt keywords. |
635 " 3. Default to "latex" or to g:tex_flavor, can be set in user's vimrc. | 635 " 3. Default to "plain" or to g:tex_flavor, can be set in user's vimrc. |
636 func dist#ft#FTtex() | 636 func dist#ft#FTtex() |
637 let firstline = getline(1) | 637 let firstline = getline(1) |
638 if firstline =~ '^%&\s*\a\+' | 638 if firstline =~ '^%&\s*\a\+' |
639 let format = tolower(matchstr(firstline, '\a\+')) | 639 let format = tolower(matchstr(firstline, '\a\+')) |
640 let format = substitute(format, 'pdf', '', '') | 640 let format = substitute(format, 'pdf', '', '') |