From 43a1bc3094d1d8da0a2b2cedcf98cda6f450e00c Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Fri, 11 Sep 2009 13:13:14 +0200 Subject: Initial import of dotfiles --- vimperatorrc | 243 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 243 insertions(+) create mode 100644 vimperatorrc (limited to 'vimperatorrc') diff --git a/vimperatorrc b/vimperatorrc new file mode 100644 index 0000000..2b2a60c --- /dev/null +++ b/vimperatorrc @@ -0,0 +1,243 @@ +" anrxc's vimperator init file with Emacs bindings + +" For a nice formatted list of keybindings check: +" * 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 + + +" User styles as colorschemes in Vimperator 2 +" * ~/.vimperator/colors/clearlooks.vimp +colorscheme clearlooks + + +" Options +" - Most of the options already have good defaults +" +" Window title (Vimperator by default) +set titlestring=Firefox + +" Editor, C-i invokes it in text fields (replaces "It's All Text") +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 the tab bar only if more then one tab is open +set showtabline=1 + +" Show destination links in 1=status line, 2=command line +set showstatuslinks=1 + +" Show completions and use AwesomeBar (+search plugins) +set complete=sl +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: +set ds=yubnub + + +" Key bindings +" - Emacs key theme for GTK and Firefox already provide bindings for input fields. +" +" M-x enters command mode +noremap : + +" Emacs navigation in command line and insert mode +cmap +cmap +cmap +cmap +cmap +noremap +inoremap +inoremap +inoremap +inoremap +inoremap + +" Use C-f and C-b for tab browsing +noremap +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 $ + +" Use C-p and C-n for up/down +noremap k +noremap j + +" Use C-v and M-v for jump scrolling +noremap +noremap + +" Goto the top of the document with M-< +noremap gg + +" Goto the end of the document with M-> +noremap > G + +" Use C-s and C-r for searching (n/N for next/prev as in less) +noremap / +noremap ? + +" Copy the current URL to the clipboard with M-w +noremap y +" Copy selected text to the clipboard with C-w +noremap Y + +" Paste the current clipboard selection to a new buffer with C-y +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 +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 + +" Kill the buffer with C-x k +noremap k d + +" Undo close tab with C-_ (also with C-Shift-t, as C-t is new tab) +noremap u + +" Exit and save the session with C-x C-c +noremap ZZ + +" Buffer lists with C-x b and C-x C-b +noremap b b +noremap B + +" C-x l as :open +" C-x t as :tabopen +noremap l :o +noremap t :t + +" Switch roles of f and F to have hints opened in new tabs by default +"noremap f F +"noremap F f + +" 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 ; + +" We can now also use F for Shift+b/f as back/forward +noremap F L +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 + +" Record a key sequence into a macro with C-x ( +noremap ( q + +" Play a macro with C-x e +noremap e @ + +" Set a mark at the cursor with C-x r m +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 +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 +" +" M-Up/Dn toggles the toolbar (I keep all bars in one) +map :set go+=T +map :set go-=T + +" Sidebar selection with s, close a sidebar 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 + +" Bookmarks search and search by tag +map q :bmarks +map w :bmarks -tags= + +" View source with C-x g +noremap g gf +" or in an external editor +"noremap g gF + +" Focus the address bar with C-l +map + +" Focus last used input field with C-x i +noremap i gi + +" Open home directory with C-x f +noremap f ~ + +" Go to home page with C-x h +noremap h gh + +" Go to parent directory with C-x u +noremap u gu + +" Go to the root of the website with C-x C-u +noremap gU + + +" Javascript +" - Some useful functions +" +" Show the feed-button in the statusbar +javascript <