[Vimperator] comma and quotes

Martin Stubenschrott stubenschrott at gmx.net
Sat Jun 14 16:32:38 PDT 2008


Hanuš Adler wrote:

> Hello, would it be possible to have a setting that would make  
> vimperator treat ", " (comma+space) not as a separator? Or make it  
> behave that way if it is enclosed in quotes or apostrophes?

Configurability for this like :set urlseparators=,\s+ would be a nice idea,
I put it on the TODO, but with very low priority, so don't expect it soon.

> I was trying to create a shortcut that would allow me to select an  
> address and by pressing one key take me directly to google maps at  
> the addres – and because most addresses have commas in them, my  
> bookmark "http://maps.google.cz/maps?q=%s" cannot really work now  
> without me remembering to remove the commas manually :(

As a workaround, you could map that key to a :javascript function which does
url.replace(/ /, "%20") to get rid of the spaces and use the HTML counterpart
for it.

--
Martin


More information about the Vimperator mailing list