vimperatorrc 2.0 KB

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