-
Notifications
You must be signed in to change notification settings - Fork 20
/
.pentadactylrc
215 lines (171 loc) · 6.13 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
" My pentadactylrc uses folds
"
" zR open all folds
" zM close all folds
" za toggle fold at cursor position
" zj move down to start of next fold
" zk move up to end of previous fold
" My pentadactylrc command and mapping quick reference {{{1
" -----------------------------------------------------------------
"
" Keyboard mappings
"
" Change Option:
" coh -- toggles the highlight search
" cog -- Toggle the gui on or off
" cob -- shows the bookmark toolbar
" cot -- Toggle the tab bar on or off
" Bookmark:
" bd -- Bookmark in Delicious
" bdm -- Start the dev meeting
" bp -- Add video to Plex
" br -- Read later in Pocket
" bx -- Kick ass!
" Movement:
" w -- Horizontal scroll left
" e -- Horizontal scroll right
" J -- Alternative to <C-f>
" K -- Alternative to <C-b>
" <C-h> -- Switch to next tab to the left
" <C-l> -- Switch to next tab to the right
" H -- Move current tab to the left
" L -- Move current tab to the right
" <C-;> -- Go to the next tab group
" <C-'> -- Go to the previous tab group
" Other Stuff:
" f -- Remapped to ;; to only focus hint
" <C-e> -- Open textarea in external editor
" <M-S-E> -- Map the group tab shortcut to start pass through first
"
" Keyboard mappings that have been disabled
"
" d -- Turned off delete current tab
" <bs> -- Turned off backspace as "back"
" <C-a> -- Turned off auto increment because it is annoying
" General settings {{{1
" -----------------------------------------------------------------
" Use home row letters for hints instead of numbers
set hintkeys=asdfg;lkjh
" tell the bell to go beep itself!
set novisualbell
"
" turn off the freakin' bell
hi Bell display: none;
"
" Only show the command line and status bar
set guioptions=Cs
" set wild mode to show completions as you type
set wildmode="list:full"
" fix completion list so search engines don't kill tabbing
set complete=lS
" show up to 35 items in the completion list
set maxitems=35
" use a different color scheme
colorscheme solarized-light
" set a stupid title
set titlestring="oh hai!"
" only show the tab bar if there are more than 1 tabs
set showtabline='multitab'
" load plugins that are css as well
set loadplugins='\.(css|js|penta)$'
" Open diverted links automatically
set activate+=diverted
" Searching {{{1
" -----------------------------------------------------------------
" find as you type
set incfind
" highlight the terms
set hlfind
" unless they contain upper-case letters
set findcase=smart
" a toggle for search highlight
map <silent> coh :set hlfind!<CR>
" Set up google as the default search engine
set defsearch=google
" Mappings {{{1
" -----------------------------------------------------------------
"
" Don't follow a hint immediately
map -builtin f ;;
" bring back/hide portions of the GUI
map -builtin <silent> cog :set guioptions!=mBT<CR>
map -builtin <silent> cob :toolbartoggle Bookmarks Toolbar<CR>
map -builtin <silent> cot :set showtabline!=never,always<CR>
" temporary workaround for copy paste in text boxes
" https://code.google.com/p/dactyl/issues/detail?id=517
imap -builtin <M-z> <pass>
imap -builtin <M-a> <pass>
imap -builtin <M-x> <pass>
" smooth scroll setting
set scrollsteps=20
set scrolltime=200
" Scroll settings
map -builtin w 10h
map -builtin e 10l
" go forward and back
map -builtin J <C-f>
map -builtin K <C-b>
" Go to the next/previous tab
map -builtin <C-h> <C-p>
map -builtin <C-l> <C-n>
map -builtin <M-[> <C-p>
map -builtin <M-]> <C-n>
" Go back and forward in history of the current page
map -builtin <C-[> :back<CR>
map -builtin <C-]> :forward<CR>
" Go to the next / previous tab group
map -builtin <C-;> <C-S-~>
map -builtin <C-''> <C-`>
" Move the current tab
map -builtin H <Esc>:tabmove! -1<CR>
map -builtin L <Esc>:tabmove! +1<CR>
" Also assign ctrl + e as that is easier to type, and what I have
" set up in thunderbird :)
imap -builtin <C-e> <C-i>
" Clearly doesn't invoke anymore, this forces it
map -builtin <M-C-r> :emenu Tools.Clearly<CR>
" I tend to tap the 'd' key on my keyboard on accident
nmap -builtin d <silent> <Nop>
" Never wanted to go back when I hit delete, now it won't
nmap -builtin <bs> <nop>
" The auto number incremeting is kind of annoying
nmap -builtin <C-a> <nop>
" Go into pass through mode when invoking group tabs
"nmap -builtin <M-S-E> <C-z><M-S-E>
" Bookmarklets {{{2
" -----------------------------------------------------------------
" NOTE: These are bookmarks in Firefox with keywords. You'll have
" to add the bookmarks if they don't exist.
" Save page to Pocket
map -builtin <silent> br :open bkm-pocket<CR>
" destroy a website asteroids style
map -builtin <silent> bx :open bkm-asteroids<CR> <C-Z>
" Save to bookmarking service (Pinboard currently)
map -builtin <silent> bb :open bkm-bookmark<CR>
" Start up the dev meeting
map -builtin <silent> bd :tabopen bkm-dev-meeting<CR>
" Shortcuts for GitHub Pull Requests
map -builtin <silent> bpr :tabopen bkm-prs-review<CR>
map -builtin <silent> bpq :tabopen bkm-prs-qa<CR>
" Add video on the page to Plex
map -builtin <silent> bp :open bkm-plex<CR>
" InstantRst vim plugin
map -builtin <silent> bi :open bkm-instantrst<CR>
" Interface Tweaks {{{1
" -----------------------------------------------------------------
" Get rid of the tab group / tab selector arrow at the top of the
" vertical tab bar when using Tree Style Tab. This can't be done
" through the interface customization for some reason.
javascript <<EOF
(function() {
var alltabs = document.getElementById('alltabs-button');
if (alltabs !== null) {
alltabs.parentNode.removeChild(alltabs);
};
})();
EOF
" Overrides for local machine {{{1
" -----------------------------------------------------------------
source! ~/.pentadactylrc.local
" turn on folds
" vim: fdm=marker