{"id":22527008,"url":"https://github.com/m1foley/vim-expresso","last_synced_at":"2026-02-23T15:02:45.348Z","repository":{"id":147001559,"uuid":"54157295","full_name":"m1foley/vim-expresso","owner":"m1foley","description":"Easily perform math calculations from text","archived":false,"fork":false,"pushed_at":"2024-08-29T04:53:26.000Z","size":12,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T01:41:39.531Z","etag":null,"topics":["vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m1foley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-17T23:05:38.000Z","updated_at":"2024-08-29T04:53:30.000Z","dependencies_parsed_at":"2024-12-07T06:25:47.828Z","dependency_job_id":"85b367cb-9594-4b14-977e-9bda8d17e5c5","html_url":"https://github.com/m1foley/vim-expresso","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m1foley/vim-expresso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1foley%2Fvim-expresso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1foley%2Fvim-expresso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1foley%2Fvim-expresso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1foley%2Fvim-expresso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m1foley","download_url":"https://codeload.github.com/m1foley/vim-expresso/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1foley%2Fvim-expresso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29746499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["vim"],"created_at":"2024-12-07T06:25:19.982Z","updated_at":"2026-02-23T15:02:45.332Z","avatar_url":"https://github.com/m1foley.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"expresso.vim\n============\n\nEvaluate text as a math expression and replace it with the result.\n\n![screenshot](https://cloud.githubusercontent.com/assets/199775/14120183/84e7a998-f5a6-11e5-8e5a-2856ee4e2f91.gif)\n\nInstallation\n------------\n\nUsing [vim-plug](https://github.com/junegunn/vim-plug):\n\n```vim\nPlug 'm1foley/vim-expresso'\n```\n\nUsage\n-----\n\n### Visual mode\n\n- `g=` after selecting text replaces it with the result.\n\n### Normal mode\n\n- `g=` with a motion. For example, `g=$` evaluates text from the cursor to the end of the line.\n- `g==` evaluates the current line.\n\n### Command mode\n\n- With a range like `:1,7Expresso`\n\nLimitations\n-------------\n\nExpresso uses Vim expressions, so it has the same limitations of `@=`, the expression register. If none of the numbers have a decimal, it evaluates to a whole number: `3/2` = `1`. To force a `Float` conversion, add a decimal to one of the numbers: `3/2.0` = `1.5`\n\nSimilar Projects\n----------------\n- [crunch](https://github.com/arecarn/crunch.vim) is a more powerful \u0026 expressive math plugin, and gets around the `Float` conversion issue.\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1foley%2Fvim-expresso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm1foley%2Fvim-expresso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1foley%2Fvim-expresso/lists"}