forked from aniani/vim
patch 9.1.0865: filetype: org files are not recognized
Problem: filetype: org files are not recognized
Solution: detect '*.org' files as 'org' filetype,
include filetype and syntax plugin
(Luca Saccarola)
closes: #16054
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
4bd9b2b246
commit
0684800c85
@@ -2724,4 +2724,14 @@ func Test_make_file()
|
||||
filetype off
|
||||
endfunc
|
||||
|
||||
func Test_org_file()
|
||||
filetype on
|
||||
|
||||
call writefile(['* org Headline', '*some bold text*', '/some italic text/'], 'Xfile.org', 'D')
|
||||
split Xfile.org
|
||||
call assert_equal('org', &filetype)
|
||||
|
||||
filetype off
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
865,
|
||||
/**/
|
||||
864,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user