summaryrefslogtreecommitdiff
path: root/.vimperatorrc
blob: 7a9a9797aff13626b63b30c6e13fcdfd93ae5e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
" ==========
" SETTINGS
" ==========

" show URL-Bar in FF
"set guioptions+=T
set toolbars=none,navigation,tabs

" Open resized popups in a new window
set popups=resized

" Automatically show completions while you are typing.
"set wildoptions=auto

" what is completed
" s --> Search engines and keyword URLs
" l --> FF location bar entries
" f --> local files
set complete=slf

" FF setting: disable loading via middle-mouse click
set! middlemouse.contentLoadURL=false

" FF setting: disable highlighting of the domain name
set! browser.urlbar.formatting.enabled=false

" better navigation in forums
set previouspattern^=\\b[zZ]urück\\b
set nextpattern^=\\b[wW]eiter\\b

" ===========
" MAPPINGS
" ===========

" Better print mapping
map <C-p> :ha<CR>

" Backspace for backwards
map <BS> H

" switch C-O and C-I s.t. they are more logical
noremap <C-o> <C-i>
noremap <C-i> <C-o>

" paste
map <A-p> :pastebin

" map something to allow bookmarking
map ,b :js liberator.open("javascript:document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','http://www.mendeley.com/min.php/bookmarklet')")<CR>
map ,e :js liberator.open("javascript:void(location.href='https://eaccess.ub.tum.de:2443/login?url='+location.href)")<CR>

" 'tabgroup' is way too long
cmap tg tabgroups

" vim: ft=vim