{"id":19078964,"url":"https://github.com/tomtom/vimform_vim","last_synced_at":"2025-04-30T05:23:44.340Z","repository":{"id":864557,"uuid":"601137","full_name":"tomtom/vimform_vim","owner":"tomtom","description":"Simple text-based forms for vim","archived":false,"fork":false,"pushed_at":"2017-03-25T14:35:27.000Z","size":68,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T20:49:54.044Z","etag":null,"topics":["forms","tui","ui","user-interface","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"http://vim.sourceforge.net/scripts/script.php?script_id=3051","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomtom.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-04-08T17:35:12.000Z","updated_at":"2023-10-07T14:25:29.000Z","dependencies_parsed_at":"2022-08-16T11:15:13.748Z","dependency_job_id":null,"html_url":"https://github.com/tomtom/vimform_vim","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Fvimform_vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Fvimform_vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Fvimform_vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Fvimform_vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomtom","download_url":"https://codeload.github.com/tomtom/vimform_vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251646321,"owners_count":21620910,"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":["forms","tui","ui","user-interface","vim","vim-plugin"],"created_at":"2024-11-09T02:12:52.989Z","updated_at":"2025-04-30T05:23:44.322Z","avatar_url":"https://github.com/tomtom.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example: \u003e\n\n    let form = vimform#New()\n    let form.name = \"Test Form\"\n    let form.fields = [\n                \\ ['Name'],\n                \\ ['Address',  {'join': \"\\n\"}],\n                \\ ['Planet',   {'value': 'Earth'}],\n                \\ ['Phone',    {'validate': '%s =~ ''^[0-9()+-]*$''',\n                \\               'message': 'Must be a phone number'}],\n                \\ ['E-Mail',   {'validate': '%s =~ ''^\\([a-zA-Z.]\\+@[a-zA-Z]\\+\\.[a-zA-Z.]\\+\\)\\?$''',\n                \\               'message': 'Must be an e-mail'}],\n                \\ ['Private',  {'value': 0, 'type': 'checkbox'}],\n                \\ ['Business', {'value': 1, 'type': 'checkbox'}],\n                \\ ]\n    function! form.Do_Submit() dict \"{{{3\n        echom \"Test: \". self.name\n        for [field, value] in items(self.values)\n            echom \"Field\" field value\n        endfor\n    endf\n\n    call form.Split()\n\nThis will create a form, which looks like this: \u003e\n\n    \u003c\u003c\u0026Submit\u003e\u003e \u003c\u003c\u0026Cancel\u003e\u003e\n         Name: \n      Address: \n       Planet: Earth\n        Phone: \n       E-Mail: \n      Private: [ ]\n     Business: [X]\n\nCheck out further examples on:\nhttp://github.com/tomtom/vimform_vim/tree/master/test/\n\nThe following field types are currently supported:\n\n    - text fields\n    - check boxes\n    - single choice/drop-down lists\n\n                                                    *vimform-keys*\nThe following key maps can be used to navigate through forms:\n\n\u003cc-cr\u003e          \"Press\" a button. If the cursor, is not over a button, \n                the form will be submitted, i.e. the Do_Submit() method \n                is called.\n\n\u003cc-w\u003ec          Abandon/close/cancel the form.\n\n\u003cf5\u003e            Redraw the form.\n\n\u003ctab\u003e           Jump to the next field (this will also save the current \n                field's value so that it doesn't get lost when redrawing \n                a form)\n\n\u003cs-tab\u003e         Jump to the previous field\n\n\u003cc-x\u003e\u003cc-o\u003e\n\u003cc-space\u003e       Invoke the completion menu if a completion function is \n                defined for the current field.\n\n`[LETTER]       Accelerator keys are prefixed with an ampersand (\u0026). \n                Those letters are defined as |mark|s. Jump to a button \n                with |`|.\n\n\u003cLeftMouse\u003e\n\u003cspace\u003e\n\u003ccr\u003e            If the cursor is located over a checkbox, toggle that \n                check box. If the cursor is over a drop-down list, open the \n                list.\n\na\ni               Switch to insert mode.\n\n\u003cc-n\u003e \u003cc-p\u003e \u003cc-y\u003e \u003cc-e\u003e\n                Navigate drop-down lists. See also |ins-completion|.\n\n\n-----------------------------------------------------------------------\nInstall~\n\nIn order to install the vba, open the vba file in VIM and type: \u003e\n\n    :so %\n\nSee :help vimball for details.\n\nAlso available via git: http://github.com/tomtom/vimform_vim/\n\n\n\n\n\nLicense: GPLv3 or later\nInstall: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT\nSee http://github.com/tomtom for related plugins.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomtom%2Fvimform_vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomtom%2Fvimform_vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomtom%2Fvimform_vim/lists"}