view vimperatorrc @ 152:08c501149115

Ignore keys for nice websites.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 16 Dec 2013 14:42:39 -0800
parents 71ff712a6951
children 1edd50e592fd 254c4f068808
line wrap: on
line source

" Config for Vimperator

let mapleader=","

" Scroll faster
nnoremap h 3h
nnoremap j 3j
nnoremap k 3k
nnoremap l 3l

" Scroll easier
nnoremap d <C-d>
nnoremap e <C-u>

" Close tab with `x` since `d` is for scrolling down now
nnoremap x :bd<cr>

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

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

"New tab using the old classic way
nnoremap <C-t> :tabnew<cr>

" Use `i` to get into a persistent insert mode,
" and `I` for the quick one.
nnoremap i <S-Esc>
nnoremap I i

" Shortcuts for common extensions
nnoremap <leader>f i<D-\>
nnoremap <leader>p <S-Esc><A-D-\>
nnoremap <leader>b I<A-b>

" Quickly hide search highlighting
nnoremap <leader><Space> :noh<cr>

" Super minimal UI
set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs

" Websites with useful keyboard shortcuts already
ignorekeys add -except=:,J,K,b fastmail.fm
ignorekeys add -except=:,J,K,b feedly.com

" vim: ft=vim