Browse Source

move to vimperator

Much faster than pentadactyl on any of my machines. I don't use pentadactyl to
its fullest customisability/power.

Goodbye, Pentadactyl - maybe if you get more resource efficient and not so
bloated. It's a bit of a downgrade, as Pentadactyl has...

- better tab numbering (don't know HOW the Vimperator devs can handle something
  so simple, so incompetently)

- better combined commandline/statusbar (URL visibility on Vimperator's sucks)

...but those can Probably be solved with Vimperator plugins and CSS styling.
With Vimperator's speed, it is a trade-off I'm willing to make.
Weiyi Lou 12 years ago
parent
commit
140681374d
3 changed files with 43 additions and 1 deletions
  1. 1 1
      pentadactyl/pentadactylrc
  2. 4 0
      setup.sh
  3. 38 0
      vimperator/.vimperatorrc

+ 1 - 1
pentadactyl/pentadactylrc

@@ -25,7 +25,7 @@ map k 5<C-y>
 map J <C-d>
 map K <C-u>
 
-" easier switching of tabs (instead of cmd+shift '[' and ']' )
+" easier switching of tabs
 map l gt
 map h gT
 

+ 4 - 0
setup.sh

@@ -58,6 +58,10 @@ mkdir -p ~/.vimundo # persistent undo directory
 [ -f ~/.pentadactylrc ] && mv ~/.pentadactylrc "$BACKUP_DIR"
 ln -s dotfiles/pentadactyl/pentadactylrc ~/.pentadactylrc
 
+# Vimperator
+[ -f ~/.vimperatorrc ] && mv ~/.vimperatorrc "$BACKUP_DIR"
+ln -s dotfiles/vimperator/vimperatorrc ~/.vimperatorrc
+
 # Screen
 [ -f ~/.screenrc ] && mv ~/.screenrc "$BACKUP_DIR"
 ln -s dotfiles/screen/screenrc ~/.screenrc

+ 38 - 0
vimperator/.vimperatorrc

@@ -0,0 +1,38 @@
+""""""""""""""""""""""""
+" Options
+""""""""""""""""""""""""
+
+" gui options
+set gui=nonavigation,tabs,bookmarks,addons
+
+" don't focus on inputs/textfields when we navigate to a page
+set focuscontent
+
+
+""""""""""""""""""""""""
+" Mappings
+""""""""""""""""""""""""
+
+let mapleader = ","
+
+" Insert mode! Focus on first imput
+nmap i gi
+
+" Faster navigation of buffers
+" vim up/down/left/right = half paging and tab switching
+nmap j <C-d>
+nmap k <C-u>
+nmap l gt
+nmap h gT
+
+" Slower page navigation
+nmap J 5<Down>
+nmap K 5<Up>
+nmap L 5<Left>
+nmap H 5<Right>
+
+" screen/tmux-like switch to previous tab
+nmap <C-a><C-a> <C-^>
+
+" reload config
+nmap <C-r> :source ~/.vimperatorrc<CR>:echo "Configuration Reloaded (~/.vimperatorrc)"<CR>