8

This is related to my other question about copy/pasting in Vimperator.

In normal Firefox, Ctrl+K gives the focus to the search bar.

How can I do this in Vimperator?

The weird thing is that it doesn't work even in -- PASS THROUGH -- mode. Ctrl+L works in pass through, why is it that Ctrl+K doesn't?

Is there a fix or a patch?

6 Answers 6

10

Firstly, awesome job figuring out wildoptions

That said, I'd just add that if you just hit o or t it should take you to the command box with the pre-filled command :open or :tabopen respectively. You could type some text and hit Tab to look at auto-complete options for that text.


Also if you ever want to see your search bar for whatever reason:

:set go+=T

Now you should have your entire toolbar, but to access the searchbox I use:

  • Alt+d -> Tab

    OR

  • Ctrl+l -> Tab

To get rid of the unsightly toolbar just use:

:set go-=T

Also:
you could open up searchoptions via:

:dia searchengines

and set the keywords for each search engine. For eg: Google -> g, Yahoo -> y, etc.

Now when you need to search just hit o or t and follow up the command with g hello as in:

:open g hello

to open a google search page for the word hello

6

I knew :open behaves essentially like a google search box, but what bothered me was the absence of the auto-suggestions list.

Well, it turns out that set wildoptions=auto turns it on, so with that in mind, here's my workaround:

set wildoptions=auto

noremap <C-k> :open 
inoremap <C-k> <Esc>:open 
cnoremap <C-k> <Esc>:open 
0
1

The following works well for me, a variant on facepalmd's suggestion :

:set go+=T                      # Turns on the address bar, which I don't mind
:noremap <C-k> <A-d><Tab>       # maps Ctrl-K to Alt-D + Tab
1

F6 focuses the address bar for me. I use the following software.

  • Vimperator 2.3.1
  • Firefox 3.6.10
  • Mac OS X 10.5
0

According to this thread, Firefox performs unexpected behavior when pressing Ctrl+k, and vimperator cannot handle it. An alternative is to search like so:

:o [engine] [search terms]

For instance, to search google for SuperUser, the command would be

:o google SuperUser
2
  • The problem with seraching from the :open command is that you don't get the auto suggestions and other goodies (like automatically showing calculator results)
    – hasen
    Jul 31, 2009 at 13:04
  • The thread I linked shows a workaround
    – MoshiBin
    Jul 31, 2009 at 15:09
-1

Try pressing F6. F6 focusses the address bar when vimperator is active.

5
  • won't work even in pass through
    – facepalmd
    Jul 31, 2009 at 17:05
  • Vimperator hides the address bar by default. F6 is unmapped.
    – greyfade
    Aug 21, 2009 at 2:55
  • Wrong. F6 highlights the address bar in Vimperator.
    – bobobobo
    Aug 21, 2009 at 11:16
  • Right. F6 does nothing on default Vimperator config.
    – Jawa
    Oct 21, 2009 at 6:55
  • My config is default. Pressing it once does nothing. A second press highlights the address bar (not the one you type in).
    – Dentrasi
    Dec 18, 2009 at 12:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .