diff options
author | Nathan Grigg | 2014-11-02 13:58:36 -0800 |
---|---|---|
committer | Nathan Grigg | 2014-11-02 13:58:36 -0800 |
commit | 76fafa39b7c7371562dcf61e2d489c449cd3bca1 (patch) | |
tree | a011fae79b4f365f210f4fd83dd770303a8c7753 /ftplugin | |
parent | fb1de6cff1324b7b1fd8101a99bccbd232016ca1 (diff) | |
download | vim-beancount-76fafa39b7c7371562dcf61e2d489c449cd3bca1.tar.gz |
Add foldmethod
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/beancount.vim | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ftplugin/beancount.vim b/ftplugin/beancount.vim index eca6dd2..4cf4bf8 100644 --- a/ftplugin/beancount.vim +++ b/ftplugin/beancount.vim @@ -1,5 +1,16 @@ " These two variables customize the behavior of the AlignCommodity command. +if exists("b:did_ftplugin") + finish +endif + +let b:did_ftplugin = 1 +let b:undo_ftplugin = "setlocal foldmethod< comments< commentstring<" + +setl foldmethod=marker +setl comments=b:; +setl commentstring=;%s + if !exists("g:beancount_separator_col") let g:beancount_separator_col = 50 endif @@ -26,5 +37,3 @@ function! s:InsertIncoming() endfunction command! -buffer Incoming call <SID>InsertIncoming() - -setl commentstring=;%s |