diff vimperator/vimperatorrc @ 334:8e28cc541519

Add Vimperator configuration.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 22 Dec 2015 19:04:28 -0800
parents
children 4888e2f3bc1d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vimperator/vimperatorrc	Tue Dec 22 19:04:28 2015 -0800
@@ -0,0 +1,56 @@
+" Config for Vimperator
+
+" Options
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+" No GUI
+set gui=none
+
+" Highlighting
+set hlsearch
+
+" DDG FTW
+set defsearch=duckduckgo
+
+" Website that have good keyboard shortcuts
+ignorekeys add -except=<>JK fastmail.com
+ignorekeys add -except=<>JK feedbin.com
+
+" Don't close the window with the last tab.
+set! browser.tabs.closeWindowWithLastTab=false
+
+
+" Mappings
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" Scroll faster
+nnoremap j <C-d>
+nnoremap k <C-u>
+
+" Change tabs without awkward `CTRL` combinations
+nnoremap J :tabprevious<cr>
+nnoremap K :tabnext<cr>
+
+" Reorder tabs
+nnoremap > :tabmove! +1<cr>
+nnoremap < :tabmove! -1<cr>
+
+" Use and quickly hide search highlighting
+nnoremap ,<Space> :nohlsearch<cr>
+
+" Aw come on, copy/pasting is ridiculous by default.
+nnoremap <C-c> i<C-c>
+nnoremap <C-x> i<C-x>
+nnoremap <C-v> i<C-v>
+
+vnoremap <C-c> i<C-c>
+vnoremap <C-x> i<C-x>
+vnoremap <C-v> i<C-v>
+
+" On keyboards like the Leopold FC660C, for some obscure reason, the
+" <Insert> key sends the <Help> ID. WTF.
+nnoremap <Help> <Insert>
+
+" Toggle tabs.
+nnoremap <F3> :set gui=invtabs<cr>
+
+" vim: ft=vim