2019-04-15 05:57:22 +00:00
|
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
2019-09-22 00:59:18 +00:00
|
|
|
"░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
|
|
"░▀█▀░█▀▄░▀█▀░█▀▄░█▀█░█▀▀░▀█▀░█░█░█░░░█▀▄░█▀▀░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
|
|
"░░█░░█▀▄░░█░░█░█░█▀█░█░░░░█░░░█░░█░░░█▀▄░█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
|
|
"░░▀░░▀░▀░▀▀▀░▀▀░░▀░▀░▀▀▀░░▀░░░▀░░▀▀▀░▀░▀░▀▀▀░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
|
|
"░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
|
|
"
|
2019-04-15 05:57:22 +00:00
|
|
|
|
2020-03-19 19:32:57 +00:00
|
|
|
" Clear the config
|
|
|
|
sanitise tridactyllocal tridactylsync
|
|
|
|
|
2020-03-19 19:31:34 +00:00
|
|
|
alias tabsort jsb browser.tabs.query({}).then(tabs => tabs.sort((t1, t2) => t1.url.localeCompare(t2.url)).forEach((tab, index) => browser.tabs.move(tab.id, {index})))
|
|
|
|
alias tabuniq jsb browser.tabs.query({}).then(tabs => browser.tabs.remove(tabs.filter((tab, index) => tabs.slice(index + 1).find(t => t.url == tab.url)).map(tab => tab.id)))
|
|
|
|
|
2019-04-15 05:57:22 +00:00
|
|
|
" Toggle expand/collapse for comments.
|
|
|
|
bind ;c hint -c [class*="expand"],[class="togg"]
|
|
|
|
|
2019-09-22 00:59:18 +00:00
|
|
|
" match vimperators back/forward function.
|
2019-04-15 05:57:22 +00:00
|
|
|
command ba back
|
2019-04-18 02:23:04 +00:00
|
|
|
command fo foward
|
|
|
|
|
2020-03-19 19:34:17 +00:00
|
|
|
" restore buildin bookmarks
|
2019-04-18 02:23:04 +00:00
|
|
|
unbind <C-b>
|
2019-04-15 05:57:22 +00:00
|
|
|
|
|
|
|
" use h/l to cycle though tabs.
|
|
|
|
bind h tabprev
|
|
|
|
bind l tabnext
|
|
|
|
|
|
|
|
" Better find.
|
|
|
|
unbind <C-f>
|
|
|
|
bind / fillcmdline find
|
|
|
|
bind ? fillcmdline find -?
|
|
|
|
bind n findnext 1
|
|
|
|
bind N findnext -1
|
|
|
|
bind ,<Space> nohlsearch
|
|
|
|
|
2020-03-19 19:34:17 +00:00
|
|
|
bind <Space> fillcmdline_notrail
|
|
|
|
|
2019-09-22 00:59:18 +00:00
|
|
|
" Text to speech is broken on all of my firefox instances. I'll just use my
|
|
|
|
" own.
|
2019-09-21 19:04:38 +00:00
|
|
|
unbind ;r
|
|
|
|
bind ;r composite hint -pipe * textContent | shellescape | exclaim_quiet ./scripts/speak
|
2019-09-21 20:23:30 +00:00
|
|
|
|
2019-09-22 00:59:18 +00:00
|
|
|
" Settings
|
2019-09-21 20:23:30 +00:00
|
|
|
set smoothscroll true
|
|
|
|
set incsearch true
|
|
|
|
|
2019-09-22 00:59:18 +00:00
|
|
|
" Use custom theme
|
2019-09-21 19:03:20 +00:00
|
|
|
colorscheme onedark
|
2019-09-22 00:59:18 +00:00
|
|
|
|
2019-04-15 05:57:22 +00:00
|
|
|
" vim: set filetype=vim:
|
2020-03-19 19:30:43 +00:00
|
|
|
" -*- mode: vim -*-
|