-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvimperatorrc
100 lines (77 loc) · 2.54 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
" =============== Plugins ===============
set runtimepath+=~/vimperator-plugins
" =============== General ===============
" Hides Firefox navigation bar (address, serach, etc)
set gui=nonavigation
set titlestring="Mozilla Firefox"
" Split to split URL lists in commands like :open " (quoted from the documentation)
set urlseparator=' \| '
" set editor
set editor=/usr/local/bin/mvim
" fix
"if has("win32")
" "
"else
" if has("unix")
" let s:uname = system("uname")
" if s:uname == "Darwin\n"
" set editor=/usr/local/bin/mvim
" else
" set editor=gvim
" endif
" endif
"endif
" no beeping
set visualbell
=============== Remappings ===============
noremap j gt
noremap k gT
noremap h :back<CR>
noremap l :forward<CR>
noremap J <C-d>
noremap K <C-u>
; Mnemonics: noscript menu
nnoremap <leader>nm :noscript popup<CR>
nnoremap <leader>nt :noscript toggletemp<CR>
nnoremap <leader>np :noscript toggleperrem<CR>
map <A-Down> :tabmove! +1<CR>
map <A-Up> :tabmove! -1<CR>
map <C-J> :tabmove! +1<CR>
map <C-K> :tabmove! -1<CR>
map <Leader>d :downloads<CR>
map <Leader>a :addons<CR>
; Mnemonics: highlight
nnoremap <Leader>h :nohlsearch<CR>
" Try to start in normal mode on all pages
set focuscontent
" :ignorekeys add mail\\.google\\.com -except :,t,d,b
" :ignorekeys add inbox\\.google\\.com -except :,t,d,b
:ignorekeys add feedly\\.com -except :,t,d,b
" let @d = '<M-c>tcambridge.dictionary.org/dictionary/british/<M-v><CR>'
noremap @q <M-c>tcambridge.dictionary.org/dictionary/british/<M-v><CR>
"use on Wikipedia
noremap gle /English<CR><CR>
noremap glp /Portugu<CR><CR>
" go to Wikipedia link
noremap gw /Wikip<CR><CR>
noremap <silent> <leader>g :set gui=navigation<CR>
noremap <silent> <leader>G :set gui=nonavigation<CR>
" pocket
nnoremap gp <A-w>
" google i'm lucky - http://www.google.com/webhp?#q=yourquery&btnI=I , http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=%s
" go<key> opens qmark in the current tab
" gn<key> opens qmark in a new tab
qmark h https://news.ycombinator.com/news
qmark y https://www.youtube.com/feed/subscriptions
qmark i https://inbox.google.com/
qmark f https://www.facebook.com/
qmark h http://www.hardware.com.br/comunidade/area/profissoes-empregos-cursos-e-certificacoes.35/
" Google's I'm feeling lucky
bmark -t "Google Feeling Lucky Search" -k "goto" http://www.google.com/search?q=%s&btnI=I%27m+Feeling+Lucky
" nnoremap <Up> 5k
" nnoremap <Down> 5j
" Use reader mode
:command reader execute "open about:reader?url=" + content.location.href
map <Leader>r :reader <CR>
" reload dotfile
" :source ~/.vimperatorrc