aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNathan Grigg2014-10-07 10:59:11 -0700
committerNathan Grigg2014-10-07 10:59:11 -0700
commitbdc0374f49d32dd7a996113fc49d6abee2a50b24 (patch)
treeba44baa67ea2aaa8159e13fc7f2ff317b067397c /doc
parentf8177b09626a0ac973912c633d95b604b9024371 (diff)
downloadvim-beancount-bdc0374f49d32dd7a996113fc49d6abee2a50b24.tar.gz
AlignCommodity and Incoming
Diffstat (limited to '')
-rw-r--r--doc/beancount.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/beancount.txt b/doc/beancount.txt
new file mode 100644
index 0000000..6b070c9
--- /dev/null
+++ b/doc/beancount.txt
@@ -0,0 +1,17 @@
+* `:AlignCommodity`
+
+ adds spaces between an account and commodity so that the decimal points of
+ the commodities all occur in the column given by `g:decimal_separator_col`.
+ If an amount has no decimal point, the imaginary decimal point to the right
+ of the least significant digit will align.
+
+ The command acts on a range, with the default being the current line. If the
+ cursor happens to be inside that range and to the right of the account name,
+ the cursor will be pushed to the right the appropriate amount, so that it
+ remains on the same character.
+
+ The alignment character can be set using `g:beancount_decimal_separator`.
+ The script assumes the use of spaces for alignment. It does not understand
+ tabs. You might like the following remap:
+
+ inoremap . .<C-O>:AlignCommodity<CR>