Skip to content

Commit a7e8fcc

Browse files
author
Alejandro Gómez
committed
Use BufRead instead of BufReadPost for filetype recognition
According to the documentation they are equivalent, but VIM wouldn't set the filetype when opening .org files using BufReadPost. It does with BufRead.
1 parent 871bc88 commit a7e8fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftdetect/org.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
autocmd BufNewFile,BufReadPost *.org setfiletype org
1+
autocmd BufNewFile,BufRead *.org setfiletype org
22
"autocmd BufNewFile,BufReadPost org:todo* setfiletype orgtodo

0 commit comments

Comments
 (0)