view vimperator/vimperatorrc @ 467:d3ff438a4f8b

Tridactyl config tweaks.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 22 Mar 2019 18:21:13 -0700
parents 13e897e6a813
children
line wrap: on
line source

" Config for Vimperator

" Options
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" No GUI
set gui=none

" Highlighting
set hlsearch

" DDG FTW
set defsearch=duckduckgo

" Website that have good keyboard shortcuts
ignorekeys add -except=<,>,J,K,t,:,; fastmail.com
ignorekeys add -except=<,>,J,K,t,:,; feedbin.com
ignorekeys add -except=<,>,J,K,t,:,; inoreader.com

" Don't close the window with the last tab.
set! browser.tabs.closeWindowWithLastTab=false


" Mappings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Scroll faster
nnoremap j <C-d>
nnoremap k <C-u>

" Change tabs without awkward `CTRL` combinations
nnoremap J :tabprevious<cr>
nnoremap K :tabnext<cr>

" Reorder tabs
nnoremap > :tabmove! +1<cr>
nnoremap < :tabmove! -1<cr>

" Use and quickly hide search highlighting
nnoremap ,<Space> :nohlsearch<cr>

" Aw come on, copy/pasting is ridiculous by default.
nnoremap <C-c> i<C-c>
nnoremap <C-x> i<C-x>
nnoremap <C-v> i<C-v>

vnoremap <C-c> i<C-c>
vnoremap <C-x> i<C-x>
vnoremap <C-v> i<C-v>

" On keyboards like the Leopold FC660C, for some obscure reason, the
" <Insert> key sends the <Help> ID. WTF.
nnoremap <Help> <Insert>

" Go back to previous tab.
nnoremap <F2> :buffer #<cr>
" Toggle tabs.
nnoremap <F3> :set gui=invtabs<cr>
" Toggle navbar.
nnoremap <F4> :set gui=invnavigation<cr>

" vim: ft=vim