vimperatorrc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. """"""""""""""""""""""""
  2. " Options
  3. """"""""""""""""""""""""
  4. " gui options
  5. set gui=nonavigation,tabs,bookmarks,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. let autochanger_proxy_enabled = "true"
  39. let autochanger_proxy_settings = "["
  40. let autochanger_proxy_settings += "{ name: 'disable', usage: 'direct connection', proxy: { type: 0 } },"
  41. let autochanger_proxy_settings += "{ name: 'acer', usage: 'ACER proxy by IP', proxy: { type: 1, http: '192.168.1.248', http_port: 3128 } },"
  42. let autochanger_proxy_settings += "{ name: 'dev', usage: 'ACER dev proxy config', proxy: { type: 2, autoconfig_url: 'http://proxy.dev' } },"
  43. let autochanger_proxy_settings += "{ name: 'auto', usage: 'Autodetect proxy settings', proxy: { type: 4 } },"
  44. let autochanger_proxy_settings += "{ name: 'system', usage: 'Use System proxy settings', proxy: { type: 5 } },"
  45. let autochanger_proxy_settings += "]"