diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-11-15 08:40:22 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-15 09:07:37 +0100 |
commit | f0fd9acc4bcc4233a4bc661f23626abe496a3cee (patch) | |
tree | 7af551a4332ee569d99b948df4e405c3fbfd4710 /test | |
parent | 2024c10d74cea760ff9e4ac8208cc4c9c176f4d3 (diff) | |
download | rneovim-f0fd9acc4bcc4233a4bc661f23626abe496a3cee.tar.gz rneovim-f0fd9acc4bcc4233a4bc661f23626abe496a3cee.tar.bz2 rneovim-f0fd9acc4bcc4233a4bc661f23626abe496a3cee.zip |
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: vim/vim#16054
https://github.com/vim/vim/commit/0684800c853ee5bd6e6736389b1a6ebe6a16a741
Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_filetype.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index ec710f461a..62053f1c2c 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -2718,4 +2718,15 @@ 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) + bwipe! + + filetype off +endfunc + " vim: shiftwidth=2 sts=2 expandtab |