-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimperatorrc
39 lines (27 loc) · 1.57 KB
/
vimperatorrc
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
"3.9 (created: 2015/02/15 15:49:05)
set tabnumbers
set toolbars+=nonavigation
let mapleader = ","
set defsearch=duckduckgo
nmap s :open duckduckgo
nmap S :tabopen duckduckgo
nmap <Leader>s :open shef
nmap <Leader>S :tabopen shef
cmap <C-g> <Esc>
command -description "Pin tab to browser window" pintab js getBrowser().pinTab(getBrowser().mCurrentTab);
map <Leader>p :pintab<CR>
command -description "Add current page to Buffer app" bufferadd js content.location.href='https://bufferapp.com/add?url='+encodeURIComponent(content.location.href)+'&text='+encodeURIComponent(content.document.title);
map <Leader>b :bufferadd<CR>
command -description "Capture link to emacs with org-protocol" orglink js content.location.href='org-protocol://store-link://'+encodeURIComponent(content.location.href)+'/'+encodeURIComponent(content.document.title)
map <Leader>el :orglink<CR>
command -description "Open source in emacs" emacssrc js content.location.href='org-protocol://open-source://'+encodeURIComponent(content.location.href)
map <Leader>es :emacssrc<CR>
command -description "Capture current page to org" orgcap js content.location.href='org-protocol://capture://'+encodeURIComponent(content.location.href)+'/'+encodeURIComponent(content.document.title)+'/'+encodeURIComponent(window.getSelection())
map <Leader>ec :orgcap<CR>
map <Leader>c :open https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&shva=1<CR>
map <Leader>C :tabopen https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&shva=1<CR>
source! ~/.vimperatorrc.local
" vim: set ft=vimperator:
" Local Variables:
" mode: vimrc
" End: