> hello,
> is it possible to implement mouseless cut-and-paste commands in vimb
> with javascript, similar to the visual mode of the firefox addon
> "Vimperator"? Basicaally, the caret would have tro be moved to the
> beginning and the end of the spot in the document (not necessarily in an
> editable element) and mark those spots as the boundary of the range of
> the document that is to be copied to the clipboard.

Hi!
I don't think that this feature is it worth to add more JavaScript to vimb.
I'm not familiar with this in vimperator, but there is a workaround that
works also in vimb.

1. Switch on caret browsing by `:set caret!`
2. Put cursor before starting element. This can be achived by searching for
   the word by something `/startWord` and put the focus on this by pressing
   'n' or 'N'. Thes first to yank word is already marked and the region can
   be changed by using SHIFT + the cursor keys or SHIFT-CTRL and the cursor
   keys to go forward whole words.
3. Yank the marked content by pressing `Y` or to yank into a vimb register
   by `"aY`.

I think if you've done this sometimes this works good enough. Maybe you can
add some nice keymapps to simplify this a little
(for example to easily start this workflow `:nnoremap C :set caret=on<CR>/`).

Daniel

------------------------------------------------------------------------------
_______________________________________________
vimb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vimb-users

Reply via email to