ledger / vim-ledger

Vim plugin for Ledger
GNU General Public License v2.0
372 stars 55 forks source link

Set filetype for .ledgerrc #128

Closed mjsir911 closed 2 years ago

mjsir911 commented 2 years ago

Just for syntax highlighting & such

alerque commented 2 years ago

Can you point out some documentation on the use of .ledgerrc files? Personally I am an hledger user and haven't bumped into them, and a few quick searches suggest that they are mostly made up of default arguments for the CLI — in other words they are not ledger files with the same syntax as defined in this plugin. I'm happy to include what is useful here but I'd like to see some documentation or precedent for usage to confirm this.

kanreki commented 2 years ago

@alerque I think you're exactly right. It doesn't seem to make sense for .ledgerrc to have the syntax highlighting designed for the Ledger journal.

alerque commented 2 years ago

If I'm missing something here I'd be happy to re-examine this, but closing for now based on current evidence.

Note you could add a mode line to your rc file if you want it to be matched a particular non-standard way. Given what I know of the file you might also look into having it classified as bash or some other file type that would handle the CLI arg format and any quoting involved.