aboutsummaryrefslogtreecommitdiff
path: root/files/.vim
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2013-11-21 21:22:40 +0600
committerAnton Bobov <abobov@gmail.com>2013-11-21 22:30:05 +0600
commit5eddf7f0eb7a57f3eab5c0cc98b62f6da6280b30 (patch)
treea791e72e50862915809aba8989d9d567556a6b38 /files/.vim
parent94f4b6ba3de933d54ab7aed0c14003d91615bcca (diff)
Add ledger support.
Vim ledger template and auto aligning with tabular plugin. Add zsh aliases.
Diffstat (limited to 'files/.vim')
m---------files/.vim/bundle/tabular0
m---------files/.vim/bundle/vim-ledger0
-rw-r--r--files/.vim/ftplugin/ledger.vim2
-rw-r--r--files/.vim/snippets/ledger.snippets4
4 files changed, 6 insertions, 0 deletions
diff --git a/files/.vim/bundle/tabular b/files/.vim/bundle/tabular
new file mode 160000
+Subproject 60f25648814f0695eeb6c1040d97adca93c4e0b
diff --git a/files/.vim/bundle/vim-ledger b/files/.vim/bundle/vim-ledger
new file mode 160000
+Subproject 38d7a037a6959f3dd4efa70d5a780f46328efb6
diff --git a/files/.vim/ftplugin/ledger.vim b/files/.vim/ftplugin/ledger.vim
new file mode 100644
index 0000000..22665bc
--- /dev/null
+++ b/files/.vim/ftplugin/ledger.vim
@@ -0,0 +1,2 @@
+AddTabularPattern ledger /\v\s{2,}\zs.? ?-?\d+(\.\d+)?( \w+)?$/l0r0
+nmap <Leader>= :%Tabularize ledger<CR>
diff --git a/files/.vim/snippets/ledger.snippets b/files/.vim/snippets/ledger.snippets
new file mode 100644
index 0000000..12abdca
--- /dev/null
+++ b/files/.vim/snippets/ledger.snippets
@@ -0,0 +1,4 @@
+snippet ent
+ `system("date +%Y-%m-%d")` ${1:transaction}
+ ${2:account} ${3:vaule} R
+ ${4}