{"id":20829998,"url":"https://github.com/bimlas/vim-numutils","last_synced_at":"2026-04-29T03:03:01.087Z","repository":{"id":17364996,"uuid":"20136754","full_name":"bimlas/vim-numutils","owner":"bimlas","description":"Vim plugin: Perform calculations on numbers in text, calculator with regex support","archived":false,"fork":false,"pushed_at":"2024-02-04T18:36:48.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T18:54:19.146Z","etag":null,"topics":["calculator","neovim","regex","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"codecov/example-typescript","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bimlas.png","metadata":{"files":{"readme":"README.adoc","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-24T18:37:26.000Z","updated_at":"2024-02-04T18:36:51.000Z","dependencies_parsed_at":"2024-11-17T23:39:32.476Z","dependency_job_id":null,"html_url":"https://github.com/bimlas/vim-numutils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fvim-numutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fvim-numutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fvim-numutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fvim-numutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bimlas","download_url":"https://codeload.github.com/bimlas/vim-numutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243179904,"owners_count":20249187,"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","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":["calculator","neovim","regex","vim","vim-plugin"],"created_at":"2024-11-17T23:22:53.057Z","updated_at":"2025-12-28T06:25:17.541Z","avatar_url":"https://github.com/bimlas.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"= NumUtils\ncalculator with regex support\n\nDid you ever want to manipulate a lot of data in text files? Add an offset\nto the axes in G-code, calculate the finances, or just renumber the\nchapters in the table of contents? With this plugin you can do the\ncalculations with regular expression support!\n\n* https://github.com/bimlas/vim-numutils (please star if you like it)\n* http://www.vim.org/scripts/script.php?script_id=4634 (please rate if you using it)\n\nPlease feel free to send me a mail if you have a good idea, or found a\nbug. If you think the plugin does something else that you want, send me\nthe lines to manipulate, the task that the plugin should do and the\ncommand that you used for, and i try to find and fix the bug.\n\n== Examples\n\n`NumUtilsAdd`, `NumUtilsSub`, `NumUtilsMul`, `NumUtilsDiv`\n\nWith the built-in commands you can do the basic stuff: addition,\nsubtraction, multiplication and division. By default the commands\nwill be called on the line where the cursor stays, but you can use\n`:range`, `:global`, or `linewise-visual` to give a range as you do\nwhen you using `:subtitute` for example.\n\nA basic usage is for example add 10 to every number prefixed by `X` on this\nline:\n\n[source]\n----\n    X123 Y456 Z789 X100\n----\n\nTo do it, call this:\n\n[source]\n----\n:NumUtilsAdd 10, 'X'\n----\n\n\\... and you will get this:\n\n[source]\n----\n    X133 Y456 Z789 X110\n----\n\nAnother example (add 2 to the number after `star_` and to the number after\nanother number):\n\n[source]\n----\n    .star_10 {\n        background: url(stars.png) no-repeat 0 0;\n    }\n\n:NumUtilsAdd 2, 'star_!NUM!', ':NUM: !NUM!;$'\n\n    .star_12 {\n        background: url(stars.png) no-repeat 0 2;\n    }\n----\n\nThere is another useful feature (add first and second submatch to value of\n_!NUM!_):\n\n[source]\n----\n    100|20|3\n\n:NumUtilsAdd [1,2], '\\(:NUM:\\)|\\(:NUM:\\)|!NUM!'\n\n    100|20|123\n----\n\n== Install\n\n*Manually:*\n\nhttps://github.com/bimlas/vim-numutils/archive/master.zip[Download]\nand unzip the subdirectories into '~/.vim'.\n\nDon't forget to regenerate helptags:\n\n[source]\n----\n:helptags ~/.vim/doc\n----\n\n*https://github.com/tpope/vim-pathogen[Pathogen]:*\n\n\\... into '~/.vim/bundle' (or to your specific pathogen directory).\n\nDon't forget to regenerate helptags:\n\n[source]\n----\n:Helptags\n----\n\n*https://github.com/gmarik/Vundle.vim[Vundle]:*\n\nAdd these lines to your '.vimrc' after `call vundle#rc()`:\n\n[source]\n----\nPlugin 'bimlas/vim-numutils'\n----\n\nOpen vim again, then call `:PluginInstall`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbimlas%2Fvim-numutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbimlas%2Fvim-numutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbimlas%2Fvim-numutils/lists"}