aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pentadactylrc15
-rw-r--r--vimrc4
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 <count>u
map -count -modes=n,v x -builtin <count>d
map -count -modes=n,v w <count>o<Space>wikipedia<space>
set autocomplete=
-set defsearch=google
+set defsearch=startpage-https
set editor='rxvt -e sh -c "vim +<line> +\"sil! call cursor(0, <column>)\" <file>"'
@@ -133,3 +133,16 @@ au DownloadPost * :silent !~/.ratpoison/ranger_browser.sh <file>
" vim: set ft=pentadactyl:
+
+" Toggle images with A-i
+javascript <<EOF
+mappings.addUserMap([modes.NORMAL], ["<A-i>"],
+ "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 <leader>m :.!~/bin/calc<Enter>
+inoremap <leader>m <Esc>:.!~/bin/calc<Enter>
nnoremap <leader>i :read !latestimage<Enter>
nnoremap <leader>v :!feh '<cfile>'<CR>
@@ -107,4 +108,3 @@ set isfname+=32
"save as root
nnoremap <leader>r :w !sudo tee % >/dev/null <CR>
-