-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimperatorrc
37 lines (27 loc) · 1.27 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
autocmd LocationChange .* :js modes.passAllKeys = /mail\.google\.com/.test(buffer.URL) || /digg\.com\/reader\//.test(buffer.URL)
set editor=gvim
"Enable AwesomeBar
set complete=slSt
noremap j 3j
noremap k 3k
set gui+=nonavigation
"surround com and org可以直接先输入网站名,再用ctrl+enter快速输入.com/.net
cnoremap<S-Return> <End>.org<Home><C-Right>www.<CR>
cnoremap<C-Return> <End>.com<Home><C-Right>www.<CR>
"Next Page and Previous Page超级的下一页,基本上是够用了.快捷键是[[和]]
set nextpattern=\s*下一页|下一张|下一篇|下页|后页\s*,^\bnext\b,\\bnext\\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\\bmore\\b
set nextpattern=\s*上一页|上一张|上一篇|上页|前页\s*,^\bprev|previous\b,\\bprev|previous\\b,^<$,^(<<|«)$,^(<|«),(<|«)$
"命令行下拉菜单最多显示的条目数
set maxitems=12
"Look up the word you selected in dict.cn在dict.cn中查找所选词的英语
command! dict -nargs=* tabopen http://dict.cn/<args>
map w :dict
map <silent> W :exe ":dict "+content.getSelection()<CR>
"dictd
map <F12> ibvey<Esc><Esc>:!dict <C-v>|grep -v $<CR>
map <S-F12> Y:!dict <C-v>|grep -v ^$<CR>
" Press 'm' to go to previous tab
noremap m :tabprevious<CR>
" Press ',' to go to next tab
noremap , :tabnext<CR>
map <F2> :set gui=invnavigation<CR>