-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimperatorrc
74 lines (53 loc) · 2.05 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
"3.8.3 (created: 2014/11/09 13:19:01)
"source! /home/oliver/.vimperatorrc.local
nnoremap <F1> <Nop>
inoremap <F1> <Nop>
cnoremap <F1> <Nop>
" Remove search highlight
nnoremap <c-q> :noh<cr><esc>
" Disable quit keybinds
inoremap <c-q> <Nop>
cnoremap <c-q> <Nop>
colorscheme dorkness
set gui=none
set status=input,location,bookmark,history,tabcount,ssl
nnoremap x D
nnoremap v d
nnoremap X u
nnoremap <c-w> :q<cr>
nnoremap d <c-d>
nnoremap u <c-u>
nnoremap J <c-p>
nnoremap K <c-n>
nnoremap <leader>a :tabattach
nnoremap <leader>d :tabdetach<cr>
nnoremap <leader>D :tabduplicate<cr>
nnoremap h 4h
nnoremap j 4j
nnoremap k 4k
nnoremap l 4l
cnoremap <c-n> <tab>
cnoremap <c-p> <s-tab>
nnoremap e ;y
" Copy page title
nnoremap <c-y> :js util.copyToClipboard(buffer.title, true)<CR>
" Go to last used tab
nnoremap <bs> <c-^>
" Ctrl+a to select all text in input box
inoremap <c-y> <C-Home><C-S-End>
nnoremap gh :hs!
map <Leader>r :lowlight<cr>
map <Leader>i :o ip<cr>
map <Leader>R :o rb<cr>
map <Leader>s :o javascript:(function(){window.location='http://smmry.com/'+location.href})();<cr>
map <Leader>b :o javascript:function%20newsblur_bookmarklet()%20{%20var%20d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;%20try{%20if(!b)%20{%20throw(0);%20}%20d.title%20=%20'(Sharing...)%20'%20+%20d.title;%20z.setAttribute('src','https://www.newsblur.com/api/add_site_load_script/ff7021d817c4?url='+encodeURIComponent(l.href)+'&time='+(new%20Date().getTime()));%20b.appendChild(z);%20}%20catch(e)%20{alert('Please%20wait%20until%20the%20page%20has%20loaded.');}}newsblur_bookmarklet();void(0)<cr>
map <Leader>t :set gui=invmenu,invnavigation<cr>
map <Leader>T :set gui=invtabs<cr>
map <Leader>f :set gui=notabs<cr>:set statuslinevisibility=hidden<cr>
map <Leader>F :set gui=tabs<cr>:set statuslinevisibility=visible<cr>
map <Leader>G :set statuslinevisibility=hidden<cr>
map <Leader>g :set statuslinevisibility=visible<cr>
javascript lowlightBackground = "#181214"
" javascript lowlightForeground = "#eaeaea"
javascript lowlightForeground = "#b0a197"
" vim: set ft=vimperator: