summaryrefslogtreecommitdiffstats
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-09-03 19:21:36 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-03 19:21:36 +0200
commitdeba5eb195d6ac70171d4973091fa884809fa3fa (patch)
treefa8ac070928827ae49d82f6132e027a643868def /runtime/filetype.vim
parentaf631f61bc42d0dddafe1bc0c06872cf3aaeb239 (diff)
patch 8.2.3399: Octave files are not recognizedv8.2.3399
Problem: Octave files are not recognized. Solution: Detect Octave files. (Doug Kearns)
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 06038e94d1..0975ccd2d4 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1029,7 +1029,7 @@ au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,*.mdwn,*.md setf markdown
" Mason
au BufNewFile,BufRead *.mason,*.mhtml,*.comp setf mason
-" Mathematica, Matlab, Murphi or Objective C
+" Mathematica, Matlab, Murphi, Objective C or Octave
au BufNewFile,BufRead *.m call dist#ft#FTm()
" Mathematica notebook
@@ -1175,6 +1175,9 @@ au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.mlip,*.mli
" Occam
au BufNewFile,BufRead *.occ setf occam
+" Octave
+au BufNewFile,BufRead octave.conf,.octaverc,octaverc setf octave
+
" Omnimark
au BufNewFile,BufRead *.xom,*.xin setf omnimark