From d3aef2a9bee0962cff93f5a68588d558559f46a6 Mon Sep 17 00:00:00 2001 From: Jason Chu Date: Wed, 8 Jun 2016 05:27:48 +0000 Subject: Add a function to display the current line's beancount context in a scratch window --- ftplugin/beancount.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftplugin/beancount.vim') 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(, ) +command! -buffer -range GetContext + \ :call beancount#get_context() + " Omnifunc for account completion. setl omnifunc=beancount#complete_account -- cgit v1.2.3-2-gb3c3