CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Thu, 21 Aug 2025 11:42:00 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Mon, 21 Jun 2010 03:41:29 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "26fc11bfaee7ebd60447aa06b297408e"
x-archive-orig-x-runtime: 65ms
x-archive-orig-content-length: 25972
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 21 Jun 2010 03:41:29 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 21 Jun 2010 03:41:29 GMT", ; rel="memento"; datetime="Mon, 21 Jun 2010 03:41:29 GMT", ; rel="next memento"; datetime="Mon, 11 Jun 2018 00:51:11 GMT", ; rel="last memento"; datetime="Mon, 12 May 2025 02:10:20 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_16_20100621021026_crawl102-c/52_16_20100621034123_crawl101.arc.gz
server-timing: captures_list;dur=0.670951, exclusion.robots;dur=0.024205, exclusion.robots.policy;dur=0.011370, esindex;dur=0.012929, cdx.remote;dur=7.309008, LoadShardBlock;dur=245.415321, PetaboxLoader3.datanode;dur=122.009652, PetaboxLoader3.resolve;dur=150.243735, load_resource;dur=92.575043
x-app-server: wwwb-app217
x-ts: 200
x-tr: 422
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app217; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
tomtom's vimform_vim at master - GitHub
tomtom / vimform_vim
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage

tom (author)
Sun Apr 25 09:36:20 -0700 2010
name | age | message | |
---|---|---|---|
![]() |
README | Mon Apr 12 09:55:31 -0700 2010 | drop-down lists, various bug fixes [Tom Link] |
![]() |
TODO_vimform.txt | Sat Apr 10 10:33:47 -0700 2010 | test, todo [Tom Link] |
![]() |
autoload/ | Fri Apr 23 23:46:55 -0700 2010 | Various minor bug fixes & changes. [tom] |
![]() |
doc/ | Sun Apr 25 09:36:20 -0700 2010 | doc [tom] |
![]() |
ftplugin/ | Fri Apr 23 23:46:55 -0700 2010 | Various minor bug fixes & changes. [tom] |
![]() |
indent/ | Fri Apr 09 23:54:19 -0700 2010 | rewrite: new format; checkboxes; omni-completion [Tom Link] |
![]() |
plugin/ | Thu Apr 15 09:03:03 -0700 2010 | docs etc. [Tom Link] |
![]() |
syntax/ | Wed Apr 14 09:42:13 -0700 2010 | syntax [Tom Link] |
![]() |
test/ | Fri Apr 23 23:46:55 -0700 2010 | Various minor bug fixes & changes. [tom] |
README
*vimform.txt* Simple text-based forms for vim Example: > let form = vimform#New() let form.name = "Test Form" let form.fields = [ \ ['Name'], \ ['Address', {'join': "\n"}], \ ['Planet', {'value': 'Earth'}], \ ['Phone', {'validate': '%%s =~ ''^[0-9()+-]*$''', \ 'message': 'Must be a phone number'}], \ ['E-Mail', {'validate': '%%s =~ ''^\([a-zA-Z.]\+@[a-zA-Z]\+\.[a-zA-Z.]\+\)\?$''', \ 'message': 'Must be an e-mail'}], \ ['Private', {'value': 0, 'type': 'checkbox'}], \ ['Business', {'value': 1, 'type': 'checkbox'}], \ ] function! form.Do_Submit() dict "{{{3 echom "Test: ". self.name for [field, value] in items(self.values) echom "Field" field value endfor endf call form.Split() This will create a form, which looks like this: > <<&Submit>> <<&Cancel>> Name: Address: Planet: Earth Phone: E-Mail: Private: [ ] Business: [X] Check out further examples on: https://github.com/tomtom/vimform_vim/tree/master/test/ The following field types are currently supported: - text fields - check boxes - single choice/drop-down lists *vimform-keys* The following key maps can be used to navigate through forms: <c-cr> "Press" a button. If the cursor, is not over a button, the form will be submitted, i.e. the Do_Submit() method is called. <c-w>c Abandon/close/cancel the form. <f5> Redraw the form. <tab> Jump to the next field (this will also save the current field's value so that it doesn't get lost when redrawing a form) <s-tab> Jump to the previous field <c-x><c-o> <c-space> Invoke the completion menu if a completion function is defined for the current field. `[LETTER] Accelerator keys are prefixed with an ampersand (&). Those letters are defined as |mark|s. Jump to a button with |`|. <LeftMouse> <space> <cr> If the cursor is located over a checkbox, toggle that check box. If the cursor is over a drop-down list, open the list. a i Switch to insert mode. <c-n> <c-p> <c-y> <c-e> Navigate drop-down lists. See also |ins-completion|. ----------------------------------------------------------------------- Extracted from https://github.com/tomtom/vimtlib Status: Experimental Install: See https://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT