annotate vimperator/vimperatorrc @ 335:4888e2f3bc1d

Vimperator tweaks.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 02 Jan 2016 21:17:25 -0800
parents 8e28cc541519
children f5847cdffc21
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
334
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
1 " Config for Vimperator
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
2
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
3 " Options
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
4 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
5
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
6 " No GUI
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
7 set gui=none
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
8
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
9 " Highlighting
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
10 set hlsearch
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
11
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
12 " DDG FTW
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
13 set defsearch=duckduckgo
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
14
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
15 " Website that have good keyboard shortcuts
335
4888e2f3bc1d Vimperator tweaks.
Ludovic Chabant <ludovic@chabant.com>
parents: 334
diff changeset
16 ignorekeys add -except=<>JKt: fastmail.com
4888e2f3bc1d Vimperator tweaks.
Ludovic Chabant <ludovic@chabant.com>
parents: 334
diff changeset
17 ignorekeys add -except=<>JKt: feedbin.com
334
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
18
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
19 " Don't close the window with the last tab.
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
20 set! browser.tabs.closeWindowWithLastTab=false
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
21
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
22
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
23 " Mappings
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
24 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
25 " Scroll faster
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
26 nnoremap j <C-d>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
27 nnoremap k <C-u>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
28
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
29 " Change tabs without awkward `CTRL` combinations
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
30 nnoremap J :tabprevious<cr>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
31 nnoremap K :tabnext<cr>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
32
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
33 " Reorder tabs
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
34 nnoremap > :tabmove! +1<cr>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
35 nnoremap < :tabmove! -1<cr>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
36
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
37 " Use and quickly hide search highlighting
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
38 nnoremap ,<Space> :nohlsearch<cr>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
39
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
40 " Aw come on, copy/pasting is ridiculous by default.
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
41 nnoremap <C-c> i<C-c>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
42 nnoremap <C-x> i<C-x>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
43 nnoremap <C-v> i<C-v>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
44
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
45 vnoremap <C-c> i<C-c>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
46 vnoremap <C-x> i<C-x>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
47 vnoremap <C-v> i<C-v>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
48
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
49 " On keyboards like the Leopold FC660C, for some obscure reason, the
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
50 " <Insert> key sends the <Help> ID. WTF.
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
51 nnoremap <Help> <Insert>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
52
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
53 " Toggle tabs.
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
54 nnoremap <F3> :set gui=invtabs<cr>
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
55
8e28cc541519 Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
56 " vim: ft=vim