wren / jrnl.vim

Syntax for jrnl files in vim
Other
10 stars 6 forks source link

Usability question #1

Closed alichtman closed 3 years ago

alichtman commented 3 years ago

To use this, do you set the default syntax for .txt files to jrnl?

wren commented 3 years ago

The latest versions of jrnl (v2.7+) use .jrnl as the file extension when using an editor, so setting the default syntax for .jrnl will enable this.

If you use a template for a specific journal, jrnl will copy the file extension of your template, in which case you can decide what extension you prefer to use.

Does that answer your question?

wren commented 3 years ago

@alichtman Did that answer your question?

alichtman commented 3 years ago

Thanks! Updated jrnl and it works with:

autocmd BufRead,BufNewFile *.jrnl set filetype=jrnl