-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pentadactylrc
116 lines (85 loc) · 2.7 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
" colorscheme
colorscheme zenburn
set guioptions=brCs
" for special key bindings
map <Space> <leader>
" numbers are far, far away from home row
set hintkeys=asdfghjkl;
" set shell to zsh
set shell=zsh
" usen gvim but focus the screen and tag on which gvim spawns
set editor='/home/jso/bin/ffvim <file> <line> <column>'
" complete from search engines, location bar, local files and bookmarks
set complete=slfb
" changed keyword for google to g
set defsearch=duckduckgo
" incremental search
set incfind
" highlight search results
set hlfind
" disable url pasting with middle click
nmap -m n <MiddleMouse> <nul>
" easier access to commands
nmap -builtin ; :
nmap -builtin : ;
" disable
map <c-j> <nop>
map <c-k> <nop>
map <c-h> <nop>
map <c-l> <nop>
" use ctrl-v as intended
map -m i,c,t <C-v> <Pass>
map -m n,v,i,c,t <C-c> <Pass>
map -m n,v,i,c,t <C-a> <Pass>
map -m n,v,i,c,t <C-y> <Pass>
map -m n,v,i,c,t <left> <Pass>
map -m n,v,i,c,t <right> <Pass>
" switching tabs
map -b l <c-n>
map -b h <c-p>
" disable smooth scrolling
set scroll=20
set scrollsteps=1
set scrolltime=1
" fast scrolling
unmap j
unmap k
map -b j <c-d>
map -b k <c-u>
" move in history
map -b J :back<CR>
map -b K :forward<CR>
" move tab left and right
map -b H :tabmove -1<CR>
map -b L :tabmove +1<CR>
" confirm choice with only left hand
cmap <c-d> <Return>
" source configuration
nmap -builtin <leader>r :source ~/.pentadactylrc<CR>:echo 'Config reloaded'<CR>
" update pentadactyl
nmap -builtin <leader>u :exta http://5digits.org/nightly/pentadactyl-latest.xpi<CR>
" Session manager
nmap -builtin <leader>s :tabopen about:sessionrestore<CR>
" start private browsing
nmap -builtin <leader>i :private winopen<CR>
" search selected text in google
"nmap -builtin K S<S-Insert><CR>
" open selected links, replaces spaces between links for propper spearators
nmap -builtin <leader>o :!echo "<S-Insert>" | sed 's/ / | /g' | xclip <CR>:tabopen <S-Insert><CR>
" pop out youtube video
nmap -builtin <leader>f y:!echo "<S-Insert>" | sed 's/youtu.be\//www.youtube.com\/tv?vq=high#\/watch?v=/g' | xclip <CR>:tabopen <S-Insert><CR>
" use livestreamer
nmap -builtin <leader>l y:!livestreamer -p "mpv --fs -" "<S-Insert>" source,best,720p,medium &<CR><CR>d
" download youtube video
nmap -builtin <leader>d y:!mpv -- "<S-Insert>" &<CR><CR>d
nmap -builtin <leader>D y:!urxvtc -hold -e ~/bin/ytdl "<S-Insert>" &<CR><CR>
nmap -builtin <leader>A y:!urxvtc -hold -e ~/bin/ytdl "<S-Insert>" &<CR><CR>
" faster expose
map -builtin e <c-s-e>
" easier access to quick marks
map -builtin v gn
" fast access to history descending by date
map -builtin x :history -sort -date
" bigger more visible hints
highlight -a Hint font-size: 150% !important;
highlight -a Hint text-transform: uppercase;