[Vimperator] Search command (s///) plugin
Konstantin
Konstantin.Frolov at exigenservices.com
Fri Feb 29 03:30:18 PST 2008
Hi All,
Sometimes I need search-and-replace function while editing
some text for blog or CMS, so I implemented vim's s/// command.
It is not very clever by now, it uses first char in a command argument
as a regexp separator (so it understands s#xxx#yyy#g), but it doesn't
handle escaped separator chars (so you can not write s#\##!#
or s/\//-/, you should write s/#/!/ and s#/#-#).
It parses ALL textareas and input with type=text on page.
Anyway it's just functionality I need, so any improvements are welcomed! :)
--
Konstantin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: searchreplace.js
Type: application/x-javascript
Size: 816 bytes
Desc: not available
Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080229/3fd1349e/attachment.js
More information about the Vimperator
mailing list