# HG changeset patch # User Ludovic Chabant # Date 1450839868 28800 # Node ID 8e28cc541519aa89a20551cc0fe57d6139d046c8 # Parent e0f8641ed31efe99cfd07de851eb5685eae5b65a Add Vimperator configuration. diff -r e0f8641ed31e -r 8e28cc541519 install.cmd --- a/install.cmd Tue Dec 22 19:02:30 2015 -0800 +++ b/install.cmd Tue Dec 22 19:04:28 2015 -0800 @@ -51,6 +51,13 @@ echo set runtimepath=~/.pentadactyl,%CWD:\=/%pentadactyl > "%userprofile%\_pentadactylrc" echo source %CWD:\=/%pentadactyl/pentadactylrc >> "%userprofile%\_pentadactylrc" +if exist "%userprofile%\_vimperatorrc" ( + set /P confirm=Will delete existing "%userprofile%\_vimperatorrc". OK with that? Press CTRL-C to abort. + del /Q "%userprofile%\_vimperatorrc" +) +echo set runtimepath=~/.vimperator,%CWD:\=/%vimperator > "%userprofile%\_vimperatorrc" +echo source %CWD:\=/%vimperator/vimperatorrc >> "%userprofile%\_vimperatorrc" + :: Console 2 if exist "%appdata%\Console\console.xml" ( set /P confirm=Will delete existing Console2 settings. OK with that? Press CTRL-C to abort. diff -r e0f8641ed31e -r 8e28cc541519 install.sh --- a/install.sh Tue Dec 22 19:02:30 2015 -0800 +++ b/install.sh Tue Dec 22 19:04:28 2015 -0800 @@ -42,6 +42,9 @@ echo set runtimepath=~/.pentadactyl,$CWD/pentadactyl > "$HOME/.pentadactylrc" echo source "$CWD/pentadactyl/pentadactylrc" >> "$HOME/.pentadactylrc" +echo set runtimepath=~/.vimperator,$CWD/vimperator > "$HOME/.vimperatorrc" +echo source "$CWD/vimperator/vimperatorrc" >> "$HOME/.vimperatorrc" + # TMUX # ---- ln -s "$CWD/tmux/tmux.conf" "$HOME/.tmux.conf" diff -r e0f8641ed31e -r 8e28cc541519 vimperator/vimperatorrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vimperator/vimperatorrc Tue Dec 22 19:04:28 2015 -0800 @@ -0,0 +1,56 @@ +" 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=<>JK fastmail.com +ignorekeys add -except=<>JK feedbin.com + +" Don't close the window with the last tab. +set! browser.tabs.closeWindowWithLastTab=false + + +" Mappings +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Scroll faster +nnoremap j +nnoremap k + +" Change tabs without awkward `CTRL` combinations +nnoremap J :tabprevious +nnoremap K :tabnext + +" Reorder tabs +nnoremap > :tabmove! +1 +nnoremap < :tabmove! -1 + +" Use and quickly hide search highlighting +nnoremap , :nohlsearch + +" Aw come on, copy/pasting is ridiculous by default. +nnoremap i +nnoremap i +nnoremap i + +vnoremap i +vnoremap i +vnoremap i + +" On keyboards like the Leopold FC660C, for some obscure reason, the +" key sends the ID. WTF. +nnoremap + +" Toggle tabs. +nnoremap :set gui=invtabs + +" vim: ft=vim