-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimperatorrc
95 lines (71 loc) · 2.26 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
" vim: ft=vimperator
" disable new tab button by going to customize and dragging it away
let leader="\"
colorscheme dorkness
"close / reopen tab
nnoremap x D
nnoremap X u
"more scrolling
nnoremap h 4h
nnoremap j 4j
nnoremap k 4k
nnoremap l 4l
"vimfx like - swapped new tab - movement
"up down in accordance with tree-style tabbar
nnoremap <c-j> <c-n>
nnoremap <c-k> <c-p>
nnoremap J 10j
nnoremap K 10k
"-
nnoremap <a-j> :tabnext<CR>
nnoremap <a-k> :tabprevious<CR>
nnoremap B t
nnoremap t <c-t>
"for some reason yy broke, fix map
nnoremap yy y;
"go to first and last tab
noremap <a-g><a-g> :tabfirst<CR>
noremap <a-S-g> :tablast<CR>
inoremap <C-a> <Home>
" textarea remap <C-a> to <Home><shift><End> ?
" disables annoying history popup
nnoremap <C-h> <Nop>
" disable firefox close tab in normal mode
nnoremap <C-w> <Nop>
set hintchars=hjklasdfgyuopqwertnmzxcvb
set defsearch=duckduckgo
"format for link hints
" :highlight Hint font-size:150%;color:white;background-color:red;padding:2px;
"to rever: :highlight clear Hint
highlight Hint z-index:5000;font:normal 8pt sans-serif;font-size:150%;color:white;background:rgba(192,0,0,0.7); padding:0px 1px 0px 1px;position:absolute
highlight HintElem background-color: #444444
nnoremap yf ;y
nnoremap af ;F
nnoremap ]t <C-^>
nnoremap [t <C-^>
" nnoremap <C-l> :open
nnoremap <C-t> :tabopen
cnoremap <C-n> <Tab>
cnoremap <C-p> <Up>
"nnoreamp \ss :source
nnoremap d :bdelete<Space>-select<Space>lastactive<CR>
map -urls=lolsnaps.com [[ /Prev<cr><cr>
" not sure whichever I like best
map -urls=lolsnaps.com ]] /Prev<cr><cr>
map <Leader>t :set gui=invmenu,invnavigation<cr>
map <leader>k :set gui=invmenu,invnavigation<cr>
map <leader>l :lowlight<CR>
nnoremap gf <NOP>
" set! extensions.kb.findKey=""
" set! extensions.kb.historyShowKey=""
" :help nextpattern
" map ;P
javascript <<EOS
hints.addMode("P", "Open with mpv (1080p):", (elem, loc) => liberator.execute("silent !mpv --fs --ytdl --ytdl-format='(mp4)[height>=720][height<=?1080][fps>=30]+bestaudio' '" + loc + "' &", null, true));
EOS
" map ;M
javascript <<EOS
hints.addMode("M", "Open with mpv :", (elem, loc) => liberator.execute("silent !mpv '" + loc + "' &", null, true));
EOS
source ~/dotfiles/vimperator-plugins/plugin/lowlight.js
" NB(nils): <space> kan användas i RHS av maps