vim-mbnotes/ftdetect/mbnotes.vim
2025-01-11 01:40:02 +00:00

11 lines
211 B
VimL

vim9s
def IsMBNotes()
var path_prefix = expand('%:p')[0 : len(g:mbnotes_dir) - 1]
if path_prefix == g:mbnotes_dir
set filetype=mbnotes
endif
enddef
au BufNewFile,BufRead *.qmd IsMBNotes()