diff options
author | Nathan Grigg | 2016-06-14 18:52:45 -0700 |
---|---|---|
committer | GitHub | 2016-06-14 18:52:45 -0700 |
commit | 7a955504671e72c8086fb8b592f7de6ba6083f9f (patch) | |
tree | 75f64733509c544ea12f0cec93503e647531f656 /ftplugin | |
parent | 8d13b147c6feb68af10112c3d2c6dccd1a4aead4 (diff) | |
parent | d3aef2a9bee0962cff93f5a68588d558559f46a6 (diff) | |
download | vim-beancount-7a955504671e72c8086fb8b592f7de6ba6083f9f.tar.gz |
Merge pull request #19 from xentac/bean-doctor-context
Add a function to display the current line's beancount context in a scratch window
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/beancount.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ftplugin/beancount.vim b/ftplugin/beancount.vim index bcdc8c4..dc35999 100644 --- a/ftplugin/beancount.vim +++ b/ftplugin/beancount.vim @@ -28,5 +28,8 @@ endif command! -buffer -range AlignCommodity \ :call beancount#align_commodity(<line1>, <line2>) +command! -buffer -range GetContext + \ :call beancount#get_context() + " Omnifunc for account completion. setl omnifunc=beancount#complete_account |