summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vimperatorrc43
1 files changed, 33 insertions, 10 deletions
diff --git a/vimperatorrc b/vimperatorrc
index 13d6a1e..1f30ebb 100644
--- a/vimperatorrc
+++ b/vimperatorrc
@@ -1,5 +1,5 @@
-" anrxc's vimperator init file with Emacs bindings
-
+" {{{ 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
@@ -10,16 +10,16 @@
" * 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
+" }}}
+" {{{ Options
+" - Most of the options already have good defaults
+"
" 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
@@ -35,6 +35,15 @@ set history=10000
" Show the tab bar only if more then one tab is open
set showtabline=1
+" Focus the 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
@@ -50,11 +59,15 @@ 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.
+" {{{ Key bindings
+" - Emacs GTK key theme and FF already provide bindings for input fields
"
+" Map leader
+let mapleader=","
+
" M-x enters command mode
noremap <A-x> :
@@ -225,10 +238,19 @@ noremap <C-x>u gu
" Go to the root of the website with C-x C-u
noremap <C-x><C-u> gU
+" }}}
+
+
+" {{{ Plugins
+"
+" Noscript
+noremap <silent> <Leader>s :noscript toggletemp<CR>
+noremap <silent> <Leader>S :noscript toggleperm<CR>
+noremap <silent> <Leader>t :noscript popup<CR>
+" }}}
-" Javascript
-" - Some useful functions
+" {{{ Javascript functions
"
" Show the feed-button in the statusbar
javascript <<EOF
@@ -253,3 +275,4 @@ javascript <<EOF
.insertBefore(bookPanel, document.getElementById("security-button"));
})();
EOF
+" }}}