From: Simon Ruderich Date: Tue, 26 May 2009 07:42:58 +0000 (+0200) Subject: asciidoc: Detect if a text file is AsciiDoc. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=a84077766413044da4fa7ee39b41b3e0b2ee6690;p=config%2Fdotfiles.git asciidoc: Detect if a text file is AsciiDoc. --- diff --git a/ftdetect/asciidoc_filetype.vim b/ftdetect/asciidoc_filetype.vim index 4180ab0..9a936e0 100644 --- a/ftdetect/asciidoc_filetype.vim +++ b/ftdetect/asciidoc_filetype.vim @@ -10,8 +10,8 @@ " The first sets asciidoc syntax highlighting on all .txt files, the second " only existing files *.txt that appear to be AsciiDoc files. -au BufNewFile,BufRead *.txt,README,TODO,CHANGELOG,NOTES setfiletype asciidoc -"au BufRead *.txt,README,TODO,CHANGELOG,NOTES call s:FTasciidoc() +"au BufNewFile,BufRead *.txt,README,TODO,CHANGELOG,NOTES setfiletype asciidoc +au BufRead *.txt,README,TODO,CHANGELOG,NOTES call s:FTasciidoc() " This function checks for a valid AsciiDoc document title after first " skipping any leading comments.