[vim] Set file type 'asciidoc' for files with .adoc extension (#417)

63 views
Skip to first unread message

David Bürgin

unread,
Sep 11, 2015, 7:00:20 AM9/11/15
to vim/vim

.adoc is another popular file extension for AsciiDoc files, see for example
http://asciidoctor.org/docs/asciidoc-writers-guide/#content-is-king.

It would be nice to have the file type for .adoc files set by default.

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 923df6e..8c3b203 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -143,7 +143,7 @@ au BufNewFile,BufRead .arch-inventory,=tagging-method   setf arch
 au BufNewFile,BufRead *.art            setf art

 " AsciiDoc
-au BufNewFile,BufRead *.asciidoc       setf asciidoc
+au BufNewFile,BufRead *.asciidoc,*.adoc        setf asciidoc

 " ASN.1
 au BufNewFile,BufRead *.asn,*.asn1     setf asn


Reply to this email directly or view it on GitHub.

Bram Moolenaar

unread,
Sep 13, 2015, 1:44:20 PM9/13/15
to vim/vim

David Burgin wrote:

> `.adoc` is another popular file extension for AsciiDoc files, see for example
> ```

Thanks, I'll include it.

--
FIRST VILLAGER: We have found a witch. May we burn her?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

David Bürgin

unread,
Sep 25, 2015, 5:08:40 PM9/25/15
to vim/vim

Included with ca63501, thanks.

David Bürgin

unread,
Sep 25, 2015, 5:09:04 PM9/25/15
to vim/vim

Closed #417.

Reply all
Reply to author
Forward
0 new messages