{"id":22475464,"url":"https://github.com/philips/vim-ledger","last_synced_at":"2026-01-07T10:03:29.676Z","repository":{"id":4562578,"uuid":"5703740","full_name":"philips/vim-ledger","owner":"philips","description":"pull contrib/vim out of jwiegley/ledger/ for ease of use with vundle","archived":false,"fork":false,"pushed_at":"2012-09-06T14:52:26.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T17:27:19.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philips.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-06T14:51:52.000Z","updated_at":"2014-06-01T14:42:33.000Z","dependencies_parsed_at":"2022-08-06T17:00:43.820Z","dependency_job_id":null,"html_url":"https://github.com/philips/vim-ledger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/philips/vim-ledger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fvim-ledger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fvim-ledger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fvim-ledger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fvim-ledger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philips","download_url":"https://codeload.github.com/philips/vim-ledger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips%2Fvim-ledger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28234553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-06T13:17:19.233Z","updated_at":"2026-01-07T10:03:29.650Z","avatar_url":"https://github.com/philips.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nThis is the ledger filetype for vim.\nCopy each file to the corresponding directory in your ~/.vim directory.\nThen include the following line in your .vimrc  or in ~/.vim/filetype.vim\n  au BufNewFile,BufRead *.ldg,*.ledger setf ledger | comp ledger\nYou can also use a modeline like this in every ledger file\n  vim:filetype=ledger\n\nTips and useful commands\n======================================================================\n • Try account-completion (as explained below)\n • :call LedgerSetDate(line('.'), 'effective')\n   will set today's date as the effective date of the current\n   transaction. You can use also 'actual' in place of 'effective'\n   or pass in a different date measured as seconds since 1st Jan 1970.\n • :call LedgerSetTransactionState(line('.'), '*')\n   sets the state of the current transaction to '*'. You can\n   use this in custom mappings.\n • :call LedgerToggleTransactionState(line('.'), ' *?!')\n   will toggle through the provided transaction states.\n   You can map this to double-clicking for example:\n   noremap \u003csilent\u003e\u003cbuffer\u003e \u003c2-LeftMouse\u003e\n   \\ :call LedgerToggleTransactionState(line('.'), ' *?!')\u003cCR\u003e\n\nConfiguration\n======================================================================\nInclude the following let-statements somewhere in your .vimrc\nto modify the behaviour of the ledger filetype.\n\n* Number of colums that will be used to display the foldtext.\n  Set this when you think that the amount is too far off to the right.\n    let g:ledger_maxwidth = 80\n\n* String that will be used to fill the space between account name\n  and amount in the foldtext. Set this to get some kind of lines\n  or visual aid.\n    let g:ledger_fillstring = '    -'\n  My special tip is to use so-called digraphs:\n  Press \u003cC-K\u003e followed by the two-characters key sequence below.\n  (in insert-mode)\n    '. = ˙ or ': = ¨ --\u003e ˙˙˙˙˙˙ or ¨¨¨¨¨¨\n    ', = ¸           --\u003e ¸¸¸¸¸¸\n    .M = ·           --\u003e ······\n    \u003e\u003e = »           --\u003e »»»»»»\n  All those look rather unobstrusive\n  and provide a good visual aid to find the correct amount.\n\n* If you want the account completion to be sorted by level of detail/depth\n  instead of alphabetical, include the following line:\n    let g:ledger_detailed_first = 1\n\nCompletion\n======================================================================\nOmni completion is currently implemented for account names only.\n\nAccounts\n----------------------------------------------------------------------\nAccount names are matched by the start of every sub-level.\nWhen you insert an account name like this:\n  Asse\u003cC-X\u003e\u003cC-O\u003e\nYou will get a list of top-level accounts that start like this.\n\nGo ahead and try something like:\n  As:Ban:Che\u003cC-X\u003e\u003cC-O\u003e\nWhen you have an account like this, 'Assets:Bank:Checking' should show up.\n\nWhen you want to complete on a virtual transaction,\nit's currently best to keep the cursor in front of the closing bracket.\nOf course you can insert the closing bracket after calling the completion, too.\n\nLicense\n======================================================================\nCopyright 2011-2009 by Johann Klähn\nCopyright      2009 by Stefan Karrmann\nCopyright      2005 by Wolfgang Oertl\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips%2Fvim-ledger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilips%2Fvim-ledger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips%2Fvim-ledger/lists"}