Repository navigation
v0.3.0
VimText 0.3.0: on the Chrome Web Store, with clipboard registers, Session State across tabs, and the surround and targets Plugins
VimText gives Vim's modal editing to the text fields of ordinary web pages
(textarea and single-line text inputs), editing the page's own field in
place: no native host, no replacement editor. Chrome only.
Install: from the Chrome Web Store once its review passes; the README links the store page.
Source, issues, design and the accepted limitations: https://github.com/Kyu-seok/VimText
0.3.0 is the first version on the Chrome Web Store. It closes M3. What is
new since 0.2.0:
Clipboard registers
- "+ is the system clipboard: "+p reads it; "+y, "+d and "+c write it. "*
is an alias of "+. The unnamed register never touches the clipboard. - The clipboard is read only for a "+ or "* paste and written only when a
yank, delete or change stores text into "+ or ". A denied read shows a
message on the Status Line and leaves the text alone. A plain http://
page has no clipboard API, so every "+ and " command beeps there, with
a message.
Session State across tabs
- Registers (the macros they hold included), search and command history
and the last f/t search are shared by every field in every tab for as
long as the browser runs. They live in Chrome's session storage and are
gone when the browser closes. - Two tabs changing a register at the same moment: the last write wins;
nothing is merged. - Marks, undo history and the jump list stay with the field they belong to.
vimrc
- The options page lists each failing line of a saved vimrc, with the
engine's message, under the text box. A clean vimrc lists nothing. - The saved vimrc is the whole truth about your mappings. Every Activation
clears the user mappings and runs it again, so a mapping you delete is
gone at the next Activation in every tab instead of lingering until a
restart.
Plugins (off by default; switched on in the options page, effective at the
next Activation in every tab)
- surround (modelled on vim-surround): ys{motion}{char}, yss{char},
cs{old}{new}, ds{old} and Visual S{char}; the four bracket pairs with
the aliases b r B a (the opening character adds inner spaces, the closing
one does not) and the three quotes; any other character wraps literally.
. repeats ys, cs and ds with the same characters. Macros record and
replay them. - targets (modelled on targets.vim): i( a( i" a" and friends Seek the next
pair or quote when the cursor is not inside one; the n and l prefixes
(cin(, dil", vin(); the argument objects ia and aa. - A vimrc mapping on a key a Plugin also binds wins, as your vimrc beats a
plugin's default maps in Vim. - Not in this version: surround's tag and function targets (ysiw,
cst, dst), yS ySS cS gS and Insert-mode Ctrl-s; targets' separator
objects, I/A, any-block ib and any-quote iq. Known differences from the
upstream plugins: a key VimText is holding while it waits for the rest of
a Plugin sequence (the d of ds) does not show on the Status Line until
the sequence resolves; Visual S is not .-repeatable; targets ranks its
Seek candidates as if every line were on screen, so a next object below
always beats a last object above; a pair whose brackets end and start
lines of their own is charwise (ci{ leaves {}). The full list is under
"Accepted limitations" in DESIGN.md.
Release
- The zip attached to this Release is what the store received, built from
this tagged commit by the release workflow. - The privacy policy ships with this version: PRIVACY.md in the repository,
linked from the store page. In short: no analytics, no network requests,
no remote code. Settings (Site Policies, the vimrc, the Plugin toggles)
are carried by Chrome Sync when you have it on and otherwise stay on
this device. The clipboard is touched only by "+ and "* commands.
Registers and history are Session State in session storage, gone when
the browser closes. The content script runs on every http and https page
and frame, because nothing else could hear the Esc that Activates a
field, but it reads only the field you Activated. A change to the policy
ships with a new version and is noted in that version's release notes. - The README describes a public install: Install leads with the store
link, load-unpacked lives under Develop.
Still true in 0.3.0
- Chrome only. Firefox is untested and not submitted.
- textarea and the text, search, url, email and tel inputs, in the top
page and in embedded frames, on plain pages and on pages whose framework
rewrites the value (React controlled inputs, masks). contenteditable
editors (Gmail, Slack, Notion, Reddit's rich-text composer) are the next
milestone; canvas editors such as Google Docs are out of scope; password
fields never. - A field starts in Insert mode and is the page's own until you press Esc
or Ctrl+[ on it. In Insert mode IME, autocomplete and the site's own
handlers work as before; only Esc, Ctrl+[, Ctrl-o, Ctrl-r, Ctrl-u and
Ctrl-w are Vim's there. - No hlsearch highlighting (n and N work). Scroll commands (Ctrl-d/u/f/b,
zz zt zb) approximate. Display-line motions approximate on unusual fonts.
Visual block highlights only the primary range. - A mapping whose prefix is itself a bound key (nnoremap x dd while
is l) never fires: the engine takes the full match at once rather
than waiting like Vim's timeoutlen. Map from an unbound prefix such as .
Bugs and questions: https://github.com/Kyu-seok/VimText/issues