Mercurial > dotfiles
annotate vimperator/vimperatorrc @ 412:0ca43d601919
Update sub-repos.
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Wed, 20 Dec 2017 09:19:14 -0800 |
| parents | 13e897e6a813 |
| children |
| 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 |
|
366
13e897e6a813
Add more keys to ignore.
Ludovic Chabant <ludovic@chabant.com>
parents:
343
diff
changeset
|
16 ignorekeys add -except=<,>,J,K,t,:,; fastmail.com |
|
13e897e6a813
Add more keys to ignore.
Ludovic Chabant <ludovic@chabant.com>
parents:
343
diff
changeset
|
17 ignorekeys add -except=<,>,J,K,t,:,; feedbin.com |
|
13e897e6a813
Add more keys to ignore.
Ludovic Chabant <ludovic@chabant.com>
parents:
343
diff
changeset
|
18 ignorekeys add -except=<,>,J,K,t,:,; inoreader.com |
|
334
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
19 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
20 " Don't close the window with the last tab. |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
21 set! browser.tabs.closeWindowWithLastTab=false |
|
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 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
24 " Mappings |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
25 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
26 " Scroll faster |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
27 nnoremap j <C-d> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
28 nnoremap k <C-u> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
29 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
30 " Change tabs without awkward `CTRL` combinations |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
31 nnoremap J :tabprevious<cr> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
32 nnoremap K :tabnext<cr> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
33 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
34 " Reorder tabs |
|
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 nnoremap < :tabmove! -1<cr> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
37 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
38 " Use and quickly hide search highlighting |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
39 nnoremap ,<Space> :nohlsearch<cr> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
40 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
41 " Aw come on, copy/pasting is ridiculous by default. |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
42 nnoremap <C-c> i<C-c> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
43 nnoremap <C-x> i<C-x> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
44 nnoremap <C-v> i<C-v> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
45 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
46 vnoremap <C-c> i<C-c> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
47 vnoremap <C-x> i<C-x> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
48 vnoremap <C-v> i<C-v> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
49 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
50 " On keyboards like the Leopold FC660C, for some obscure reason, the |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
51 " <Insert> key sends the <Help> ID. WTF. |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
52 nnoremap <Help> <Insert> |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
53 |
|
343
f5847cdffc21
Vimperator fixes and tweaks.
Ludovic Chabant <ludovic@chabant.com>
parents:
335
diff
changeset
|
54 " Go back to previous tab. |
|
f5847cdffc21
Vimperator fixes and tweaks.
Ludovic Chabant <ludovic@chabant.com>
parents:
335
diff
changeset
|
55 nnoremap <F2> :buffer #<cr> |
|
334
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
56 " Toggle tabs. |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
57 nnoremap <F3> :set gui=invtabs<cr> |
|
343
f5847cdffc21
Vimperator fixes and tweaks.
Ludovic Chabant <ludovic@chabant.com>
parents:
335
diff
changeset
|
58 " Toggle navbar. |
|
f5847cdffc21
Vimperator fixes and tweaks.
Ludovic Chabant <ludovic@chabant.com>
parents:
335
diff
changeset
|
59 nnoremap <F4> :set gui=invnavigation<cr> |
|
334
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
60 |
|
8e28cc541519
Add Vimperator configuration.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
61 " vim: ft=vim |
