vimperatorrc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. """"""""""""""""""""""""
  2. " Options
  3. """"""""""""""""""""""""
  4. " gui options
  5. set gui=navigation,tabs,nobookmarks,addons
  6. colorscheme cinaeco
  7. " don't focus on inputs/textfields when we navigate to a page
  8. set focuscontent
  9. " don't fade out messages, instead just <Esc> to clear
  10. " set messagetimeout=-1
  11. " use DuckDuckGo plugin
  12. set defsearch=duckduckgo
  13. """"""""""""""""""""""""
  14. " Mappings
  15. """"""""""""""""""""""""
  16. " Insert mode! Focus on first imput
  17. nmap i gi
  18. " Faster page navigation
  19. " vim up/down/left/right = half paging and tab switching
  20. nmap j <C-d>
  21. nmap k <C-u>
  22. nmap l gt
  23. nmap h gT
  24. " Tab moving
  25. nmap <C-h> :tabmove! -1<CR>
  26. nmap <C-l> :tabmove! +1<CR>
  27. " Slower page navigation
  28. nmap J 5<Down>
  29. nmap K 5<Up>
  30. nmap H 5<Left>
  31. nmap L 5<Right>
  32. " screen/tmux-like switch to previous tab
  33. nmap <C-a><C-a> <C-^>
  34. " reload config
  35. nmap <C-r> :source ~/.vimperatorrc<CR>:echo "Configuration Reloaded (~/.vimperatorrc)"<CR>
  36. """"""""""""""""""""""""
  37. " Proxy Settings
  38. "
  39. " Check what options are available by checking in vimperator:
  40. "
  41. " :javascript options.getPref('network.proxy...')
  42. "
  43. """"""""""""""""""""""""
  44. " Not using right now as authentication on proxies doesn't work. There is no where to supply username and password.
  45. " let autochanger_proxy_enabled = "true"
  46. " let autochanger_proxy_settings = "["
  47. " let autochanger_proxy_settings += "{ name: 'disable', usage: 'direct connection', proxy: { type: 0 } },"
  48. " let autochanger_proxy_settings += "{ name: 'acer', usage: 'ACER proxy by IP', proxy: { type: 1, http: '192.168.1.248', http_port: 3128 } },"
  49. " let autochanger_proxy_settings += "{ name: 'dev', usage: 'ACER dev proxy config', proxy: { type: 2, autoconfig_url: 'http://proxy.dev' } },"
  50. " let autochanger_proxy_settings += "{ name: 'auto', usage: 'Autodetect proxy settings', proxy: { type: 4 } },"
  51. " let autochanger_proxy_settings += "{ name: 'system', usage: 'Use System proxy settings', proxy: { type: 5 } },"
  52. " let autochanger_proxy_settings += "{ name: 'pgs', usage: 'Parsley Gardens US proxy', proxy: { type: 1, http: '64.191.99.119', http_port: 3128 } },"
  53. " let autochanger_proxy_settings += "]"