File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ TIPS *ledger-tips*
3030
3131Tips and useful commands
3232
33+ * vim-ledger can do syntax-sensitive folding when you set `foldmethod = syntax `
34+ in the | modeline | of your ledger file. This way transactions can shrink down
35+ to just one line.
36+
3337* Try account-completion (as explained below). If you use YouCompleteMe, you
3438 should disable it for Ledger files. Put this in your .vimrc:
3539
Original file line number Diff line number Diff line change @@ -10,11 +10,10 @@ endif
1010let b: did_ftplugin = 1
1111
1212let b: undo_ftplugin = " setlocal " .
13- \ " foldmethod< foldtext< " .
13+ \ " foldtext< " .
1414 \ " include< comments< commentstring< omnifunc< formatprg<"
1515
1616setl foldtext = LedgerFoldText ()
17- setl foldmethod = syntax
1817setl include = ^! \\ ?include
1918setl comments = b: ;
2019setl commentstring = ;% s
You can’t perform that action at this time.
0 commit comments