comparison 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
comparison
equal deleted inserted replaced
333:e0f8641ed31e 334:8e28cc541519
1 " Config for Vimperator
2
3 " Options
4 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5
6 " No GUI
7 set gui=none
8
9 " Highlighting
10 set hlsearch
11
12 " DDG FTW
13 set defsearch=duckduckgo
14
15 " Website that have good keyboard shortcuts
16 ignorekeys add -except=<>JK fastmail.com
17 ignorekeys add -except=<>JK feedbin.com
18
19 " Don't close the window with the last tab.
20 set! browser.tabs.closeWindowWithLastTab=false
21
22
23 " Mappings
24 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
25 " Scroll faster
26 nnoremap j <C-d>
27 nnoremap k <C-u>
28
29 " Change tabs without awkward `CTRL` combinations
30 nnoremap J :tabprevious<cr>
31 nnoremap K :tabnext<cr>
32
33 " Reorder tabs
34 nnoremap > :tabmove! +1<cr>
35 nnoremap < :tabmove! -1<cr>
36
37 " Use and quickly hide search highlighting
38 nnoremap ,<Space> :nohlsearch<cr>
39
40 " Aw come on, copy/pasting is ridiculous by default.
41 nnoremap <C-c> i<C-c>
42 nnoremap <C-x> i<C-x>
43 nnoremap <C-v> i<C-v>
44
45 vnoremap <C-c> i<C-c>
46 vnoremap <C-x> i<C-x>
47 vnoremap <C-v> i<C-v>
48
49 " On keyboards like the Leopold FC660C, for some obscure reason, the
50 " <Insert> key sends the <Help> ID. WTF.
51 nnoremap <Help> <Insert>
52
53 " Toggle tabs.
54 nnoremap <F3> :set gui=invtabs<cr>
55
56 " vim: ft=vim