From 2acbed1aec5f77cc58ead316ceb58516054a8b83 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Fri, 30 Oct 2009 00:20:24 +0100 Subject: vimperator: use C-c as a base for _all_ personal bindings --- vimperatorrc | 142 ++++++++++++++++++++++++++++------------------------------- 1 file changed, 67 insertions(+), 75 deletions(-) (limited to 'vimperatorrc') diff --git a/vimperatorrc b/vimperatorrc index c87d2c3..22a5205 100644 --- a/vimperatorrc +++ b/vimperatorrc @@ -1,51 +1,45 @@ -" {{{ anrxc's vimperator init file with Emacs bindings +" {{{ anrxc's vimperator configuration with Emacs bindings " -" For a nice formatted list of keybindings check: +" Formatted list of keybindings: " * http://sysphere.org/~anrxc/j/articles/vimperator/index.html " TODO " * C-n and C-p in "INSERT (menu)" mode -" - see this feature request: http://vimperator.org/trac/ticket/235 -" * C-? bindings wanted for: i (caret mode) and v (visual mode) -" * C-g is buggy in insert mode in Vimperator 2.0 -" * completion brings system and FF to a crawl anyway so I will not use v2.0 -" * C-g solved in Vimperator 2.1 and completion is fixed +" - feature request: http://vimperator.org/trac/ticket/235 " }}} " {{{ Options -" - Most of the options already have good defaults " " User styles as colorschemes in Vimperator 2 -" * ~/.vimperator/colors/clearlooks.vimp colorscheme clearlooks -" Window title (Vimperator by default) +" Window title set titlestring=Firefox -" Editor, C-i invokes it in text fields (replaces "It's All Text") +" Editor, C-i invokes it in text fields set editor=emacsclient " Command line and search patterns history set history=10000 -" Show the toolbar on startup (I keep all bars in one) -"set go+=T +" Show pattern matches as you type +set incsearch + +" Hilight previous search pattern matches +set hlsearch + +" Override ignorecase if pattern has uppercase chars +set smartcase " Show the tab bar only if more then one tab is open set showtabline=0 -" Focus the content after a page has loaded +" Focus content after a page has loaded set focuscontent -" Show pattern matches as you type -set incsearch - -" Override ignorecase if pattern has uppercase characters -set smartcase - " Show destination links in 1=status line, 2=command line -set showstatuslinks=1 +set showstatuslinks=2 " Show completions and use AwesomeBar (+search plugins) set complete=sl @@ -54,20 +48,14 @@ set wildoptions=auto " Ex commands output in a new tab by default (prefs, addons...) set newtab=all -" Hilight previous search pattern matches -set hlsearch - -" Default search engine is ignored, plugins are used, place yubnub in there and do: +" Internal default search engine is ignored, plugins are used set ds=yubnub " }}} " {{{ Key bindings -" - Emacs GTK key theme and FF already provide bindings for input fields +" - Emacs GTK key-theme and FF already provide bindings for input fields " -" Map leader -let mapleader="," - " M-x enters command mode noremap : @@ -91,6 +79,7 @@ noremap " Use C-a and C-e to jump to first/last tab "noremap g0 "noremap g$ +" " Or use them to go to the absolute left/right of the document noremap 0 noremap $ @@ -115,6 +104,7 @@ noremap ? " Copy the current URL to the clipboard with M-w noremap y +" " Copy selected text to the clipboard with C-w noremap Y @@ -124,16 +114,16 @@ noremap P " Use current URL as a start for a new location with C-x C-v noremap O -" C-g as cancel (C-c is stop) -"cmap +" C-g as cancel (C-q is stop) cmap imap noremap " Avoid Find dialog when canceling a started command, C-x C-g noremap +" " Avoid quit on C-q, and it's more suitable for Stop here -noremap +noremap :stop " Kill the buffer with C-x k noremap k d @@ -148,18 +138,19 @@ noremap ZZ noremap b b noremap B -" C-x l as :open -" C-x t as :tabopen -noremap l :o +" Open a link in a new tab with C-x t +" Open a link in the current tab with C-x l noremap t :t +noremap l :o -" Switch roles of f and F to have hints opened in new tabs by default +" Open hints in new tab by default (switch roles of f and F) "noremap f F "noremap F f -" Switch hints to letter "j" for right hand usage +" Switch hints to letter "j", for right hand usage noremap j f noremap J F +" " Extended hint mode with M-j " ; - focus link, a - save, y - copy link, O - :open query, T - for :tabopen ... noremap ; @@ -171,9 +162,6 @@ noremap B H " Back with Backspace as well map H -" Default C-o/C-i for older/newer position on the history jump list -"remap if needed - " Use C-h i to start help noremap i :help @@ -189,77 +177,81 @@ noremap rm m " Jump to the mark in the current buffer with C-x r b noremap rb ' -" C-v was pass-next command, re-map it so we can bind to default keys too +" C-v was pass-next, remap to bind with default keys noremap - +" " C-x C-f starts the "Open File" dialog (C-x C-s is Save) map -" I also use these, with no connection to Emacs bindings +" {{{ Personal key bindings " -" M-Up/Dn toggles the toolbar (I keep all bars in one) +" M-Up/Dn toggles the toolbar map :set go+=T map :set go-=T -" Sidebar selection with s, close a sidebar with S +" Sidebar selection with s, close with S map s :sidebar map S :sbclose " Dialog selection with d map d :dialog -" Bookmark this page with C-x a (dialog) -map a +" Add a bookmark with C-c a (dialog) +map a -" Bookmarks search and search by tag -map q :bmarks -map w :bmarks -tags= +" Bookmarks search, and search by tag +map q :bmarks +map w :bmarks -tags= -" View source with C-x g -noremap g gf +" View source with C-c g +map g gf +" " or in an external editor -"noremap g gF +"map g gF " Focus the address bar with C-l map -" Open picture location with C-x p -noremap p ;i +" Restart with C-c C-r +map :restart -" Open context menu with C-x m -noremap m ;c +" Open picture location with C-c p +map p ;i -" Focus last used input field with C-x i -noremap i gi +" Open context menu with C-c m +map m ;c -" Open home directory with C-x f -noremap f ~ +" Focus last used input field with C-c i +map i gi -" Go to home page with C-x h -noremap h gh +" Open home directory with C-c f +map f ~ -" Go to parent directory with C-x u -noremap u gu +" Go to home page with C-c h +map h gh -" Go to the root of the website with C-x C-u -noremap gU +" Go to parent directory with C-c u +map u gu + +" Go to the root of the website with C-c C-u +map gU +" }}} " }}} " {{{ Plugins " +" Buftabs +map b :set invbuftabs + " Noscript -noremap s :noscript toggletemp -noremap S :noscript toggleperm -noremap p :noscript popup -" }}} +map s :noscript toggletemp +map S :noscript popup " TinyURL -:map t :exe ":tinyurl "+getBrowser().contentWindow.location.href - -" Buftabs -"set buftabs=0 +map t :exe ":tinyurl "+getBrowser().contentWindow.location.href +" }}} " {{{ Javascript functions -- cgit v1.2.3