-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pentadactylrc
62 lines (50 loc) · 1.75 KB
/
.pentadactylrc
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
" mswin.vimp - mappings to make copy/paste in Vimperator behave like Windows
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 31 Oct 2008
noremap <C-q> <C-v>
noremap <C-Q> <C-z>
" TODO: this should probably be <C-Break> - see :help dos-CTRL-break in Vim
noremap <C-s> <C-c>
inoremap <C-q> <C-v>
inoremap <C-Q> <C-z>
inoremap <C-s> <C-c>
noremap <C-c> <C-v><C-c>
noremap <C-v> <C-v><C-v>
noremap <C-x> <C-v><C-x>
noremap <C-z> <C-v><C-z>
noremap <C-y> <C-v><C-y>
cnoremap <C-c> <C-v><C-c>
cnoremap <C-v> <C-v><C-v>
cnoremap <S-Insert> <C-v><C-v>
cnoremap <C-x> <C-v><C-x>
cnoremap <C-z> <C-v><C-z>
cnoremap <C-y> <C-v><C-y>
inoremap <C-c> <C-v><C-c>
inoremap <C-v> <C-v><C-v>
inoremap <S-Insert> <C-v><C-v>
inoremap <C-x> <C-v><C-x>
inoremap <C-z> <C-v><C-z>
inoremap <C-y> <C-v><C-y>
""""
map <C-n> :winopen<Enter>
map <C-m> :js Zotero_Browser.scrapeThisPage(".")<CR>
"" faster scroll (also use a plugin for smooth scroll:
" https://github.com/vimpr/vimperator-plugins/blob/master/_smooziee.js)
noremap j 5j
noremap k 5k
set showstatuslinks=2
set autocomplete=
hi StatusLine grey
" The following code snippet moves Zotero's there-is-something-scrapable-here
" icon from the address bar to Vimperator's status bar (blatantly stolen from
" Vimperator's RSS icon example), so you know when to press the above shortcut
javascript <<EOF
(function(){
var zoteroPanel = document.createElement("statusbarpanel");
zoteroPanel.setAttribute("id", "zotero-panel-clone");
zoteroPanel.appendChild(document.getElementById("zotero-status-image"));
zoteroPanel.firstChild.setAttribute("style", "padding: 0; max-height: 16px;");
document.getElementById("status-bar")
.insertBefore(zoteroPanel, document.getElementById("security-button"));
})();
EOF