From de12ddd5802b56445672589e467ff0eac98447f3 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Fri, 1 Aug 2014 20:43:37 +0300 Subject: over the summer changes --- pentadactylrc | 15 ++++++++++++++- vimrc | 4 ++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pentadactylrc b/pentadactylrc index e9a27ed..3cfd843 100644 --- a/pentadactylrc +++ b/pentadactylrc @@ -120,7 +120,7 @@ map -count -modes=n,v U -builtin u map -count -modes=n,v x -builtin d map -count -modes=n,v w owikipedia set autocomplete= -set defsearch=google +set defsearch=startpage-https set editor='rxvt -e sh -c "vim + +\"sil! call cursor(0, )\" "' @@ -133,3 +133,16 @@ au DownloadPost * :silent !~/.ratpoison/ranger_browser.sh " vim: set ft=pentadactyl: + +" Toggle images with A-i +javascript <"], + "Toggle images display", + function () { + if (prefs.get('permissions.default.image') == 1) + prefs.set("permissions.default.image", 2); + else + prefs.set("permissions.default.image", 1); + tabs.reload(config.browser.mCurrentTab); + }); +EOF diff --git a/vimrc b/vimrc index 2a28eb6..16fca22 100644 --- a/vimrc +++ b/vimrc @@ -73,7 +73,7 @@ set noswapfile set nobackup au CursorHold,CursorHoldI * checktime au CursorHold,CursorHoldI * silent! wa -set updatetime=1000 +set updatetime=5000 filetype plugin on filetype indent off let g:tex_flavor='latex' @@ -91,6 +91,7 @@ let g:Tex_MultipleCompileFormats='pdf, aux' "Math with qalc nnoremap m :.!~/bin/calc +inoremap m :.!~/bin/calc nnoremap i :read !latestimage nnoremap v :!feh '' @@ -107,4 +108,3 @@ set isfname+=32 "save as root nnoremap r :w !sudo tee % >/dev/null - -- cgit v1.2.3-54-g00ecf