summaryrefslogtreecommitdiff
path: root/.vimperatorrc
blob: 708a96736f5762ce63d0cda0b35db74ab12bef95 (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
56
57
58
59
60
61
62
63
" ==========
" 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

" open addons and help in new tab by default
set newtab=addons,help

let mapleader=","

" ===========
" 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

" TUM eAccess
map <Leader>e :js liberator.open("javascript:void(location.href='https://eaccess.ub.tum.de:2443/login?url='+location.href)")<CR>

" 'tabgroup' is way too long
cabbrev tg tabgroups

" two tabgroups: 'default' and 'news'
map <Leader>n :tabgroups 1switch<CR>
map <Leader>N :tabgroups pushtab! news<CR>

" vim: ft=vim