aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2014-07-03 11:37:28 +0300
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2014-07-03 11:37:28 +0300
commitc0462845bad220129e1785371876a0808d0b709a (patch)
treec8662054aa5e55d0e9202420694dd29fda12bfba
parent74c0381f3ab65231296c25ec1c90bbcdf8369c5e (diff)
downloaddotfiles-c0462845bad220129e1785371876a0808d0b709a.tar.gz
dotfiles-c0462845bad220129e1785371876a0808d0b709a.tar.bz2
dotfiles-c0462845bad220129e1785371876a0808d0b709a.zip
Add usability features to vim, change pentadactyl to google :/
-rw-r--r--pentadactylrc2
-rw-r--r--vimrc9
2 files changed, 9 insertions, 2 deletions
diff --git a/pentadactylrc b/pentadactylrc
index 4a05d33..e9a27ed 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=startpage-https
+set defsearch=google
set editor='rxvt -e sh -c "vim +<line> +\"sil! call cursor(0, <column>)\" <file>"'
diff --git a/vimrc b/vimrc
index 921284a..dcd8341 100644
--- a/vimrc
+++ b/vimrc
@@ -90,7 +90,9 @@ let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_MultipleCompileFormats='pdf, aux'
"Math with qalc
-nnoremap <leader>m :.!qalc<Enter>
+nnoremap <leader>m :.!~/bin/calc<Enter>
+nnoremap <leader>i :read !latestimage<Enter>
+nnoremap <leader>v :!feh '<cfile>'<CR>
"Tab for escape
nnoremap <Tab> <Esc>
@@ -100,3 +102,8 @@ onoremap <Tab> <Esc>
inoremap <Tab> <Esc>`^
inoremap <Leader><Tab> <Tab>
+"read spaces in path's
+set isfname+=32
+
+"save as root
+nnoremap <leader>r :w !sudo tee %<cr>