forked from turygo/pentadactyl
/
_pentadactylrc
69 lines (52 loc) · 1.82 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
62
63
64
65
66
67
68
69
"设置[[]]快捷键
set nextpattern^=\s*(下一页|下一章|下一张|下一篇|下页|后页)\s*
set previouspattern^=\s*(上一页|上一章|上一张|上一篇|上页|前页)\s*
"命令行下拉菜单最多显示的条目数
set maxitems=6
"反转y和Y键
noremap y Y
noremap Y y
"恢复ctrl+x/c/v/a 原本的功能
noremap <C-c> <C-v><C-c>
noremap <C-a> <C-v><C-a>
cnoremap <C-c> <C-v><C-c>
cnoremap <C-v> <C-v><C-v>
cnoremap <C-x> <C-v><C-x>
inoremap <C-a> <C-v><C-a>
inoremap <C-c> <C-v><C-c>
inoremap <C-v> <C-v><C-v>
inoremap <C-x> <C-v><C-x>
inoremap <C-z> <C-v><C-z>
",快速打开
:qmark t www.twitter.com
:qmark i http://readitlaterlist.com/a/queue/
:qmark m www.google.com/mail
:qmark r https://www.google.com/reader
"设置快捷键前标
set mapleader=,
"在以下网站中禁用pentadactyl
set passkeys+='www\.google\.com/reader/.*':inpmsSjko091vwfW<space>
set passkeys+="mail\.google\.com/.*":jkgnpo
set passkeys+="www\.twitter\.com/.*":jkg/?.nrm
"shift和com自动补全功能
cnoremap <S-Return> <End>.net<Home><C-Right>www.<CR>
cnoremap <C-Return> <End>.com<Home><C-Right>www.<CR>
"词典查询
map <C-d> :dicty<CR>
"实现调用其它浏览器来查看当前页面
map <leader>ie :js io.run("c:\\program files\\internet explorer\\iexplore.exe", [buffer.URL])<CR>
"一键加入Evernote
map <C-e> :evernote<CR>
"一键将页面转为readability
map <C-r> :readability<CR>
"用H L 打开前一个和后一个标签页,小写即可
nnoremap h gT
nnoremap l gt
" map to js functions F2来显示隐藏工具栏
map <silent> <F2> : set go!=T <CR>
"命令行模式禁用输入法
style -name commandline-ime chrome://* #dactyl-commandline-command input {ime-mode: inactive;}
"主题
colorscheme zenburn
"设置编辑器
set editor='"d:\\program files\\vim\\vim73\\gvim.exe " + -f +<line> +"sil! call cursor(0, <column>)" <file>'