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*
30
30
31
31
Tips and useful commands
32
32
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
+
33
37
* Try account-completion (as explained below). If you use YouCompleteMe, you
34
38
should disable it for Ledger files. Put this in your .vimrc:
35
39
Original file line number Diff line number Diff line change @@ -10,11 +10,10 @@ endif
10
10
let b: did_ftplugin = 1
11
11
12
12
let b: undo_ftplugin = " setlocal " .
13
- \ " foldmethod< foldtext< " .
13
+ \ " foldtext< " .
14
14
\ " include< comments< commentstring< omnifunc< formatprg<"
15
15
16
16
setl foldtext = LedgerFoldText ()
17
- setl foldmethod = syntax
18
17
setl include = ^! \\ ?include
19
18
setl comments = b: ;
20
19
setl commentstring = ;% s
You can’t perform that action at this time.
0 commit comments