summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimperatorrc16
1 files changed, 12 insertions, 4 deletions
diff --git a/.vimperatorrc b/.vimperatorrc
index 7a9a979..708a967 100644
--- a/.vimperatorrc
+++ b/.vimperatorrc
@@ -28,6 +28,11 @@ set! browser.urlbar.formatting.enabled=false
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
" ===========
@@ -45,11 +50,14 @@ 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>
+" 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
-cmap tg tabgroups
+cabbrev tg tabgroups
+
+" two tabgroups: 'default' and 'news'
+map <Leader>n :tabgroups 1switch<CR>
+map <Leader>N :tabgroups pushtab! news<CR>
" vim: ft=vim