Move some ledger functionality from ftplugin to vimrc