Advertisement
harnack

Untitled

Sep 23rd, 2016
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "Smart Completions not work on Fx49
  2. js services.services.autoCompleteSearch.class_="@mozilla.org/autocomplete/search;1?name=unifiedcomplete"
  3.  
  4. "=================================================
  5. " 插件
  6. "=================================================
  7.  
  8. "加载插件
  9. lpl
  10.  
  11. "chinese-hints
  12. se hm=custom
  13.  
  14. "SwitchPac
  15. se status=input,location,bookmark,history,tabcount,position,zoomlevel,SwitchPac,ssl
  16. nm xx :sp file:///D:/Firefox/pac/patterns.js<CR>
  17. nm xs :sp file:///D:/Firefox/pac/shadowsocks.js<CR>
  18. nm xj :sp file:///D:/Firefox/pac/sjtu.js<CR>
  19. nm xd :sp file:///D:/Firefox/pac/direct.js<CR>
  20. nm xe :ep<CR>
  21. nm xr :rp<CR>
  22.  
  23. "Change the current directory
  24. sil cd d:\Firefox\vimperator\plugin
  25.  
  26. "=================================================
  27. " 界面
  28. "=================================================
  29.  
  30. "ColorScheme
  31. colo MyColors
  32.  
  33. "隐藏导航栏
  34. se gui=nonavigation
  35.  
  36. "Tab Number
  37. se tn
  38.  
  39. "显示链接地址
  40. se ssli=3
  41.  
  42. "自动补全
  43. se maxitems=15
  44.  
  45. "状态栏
  46. se status+=zoomlevel,ssl
  47.  
  48. "切换导航栏
  49. nm <F9> :se gui=invnavigation<CR>
  50.  
  51. "=================================================
  52. " 设置
  53. "=================================================
  54.  
  55. "新标签页打开
  56. se newtab=all
  57.  
  58. "弹窗
  59. se pps+=resized
  60.  
  61. "Vim
  62. se editor="V.lnk -f"
  63.  
  64. "翻页
  65. se nextpattern^="^[下后]?[页頁张篇章]"
  66. se previouspattern^="^[上前]?[页頁张篇章]"
  67.  
  68. "=================================================
  69. " 搜索
  70. "=================================================
  71.  
  72. "搜索建议
  73. se cpt+=S
  74.  
  75. "搜索引擎
  76. se suggestengines=g
  77.  
  78. "Google
  79. nm s tg<Space>
  80.  
  81. "搜索所选内容
  82. com! -nargs=? -complete=search -description="Search selected text or the current clipboard contents" ss exe "t" + " <args> " + (content.window.getSelection() != "" ? content.window.getSelection() : util.readFromClipboard())
  83.  
  84. map S <C-c>:ss<Space>
  85.  
  86. "=================================================
  87. " 命令
  88. "=================================================
  89.  
  90. "Edge
  91. com! ed -description="Open with Edge" -nargs=? js io.run("ed.lnk", <q-args> != "" ? [<q-args>] : [buffer.URL]);
  92.  
  93. "=================================================
  94. " 映射
  95. "=================================================
  96.  
  97. "窗口
  98. nm ZR :res<CR>
  99. nm <S-Esc> :js window.minimize()<CR>
  100. nm <C-z> <Insert>
  101.  
  102. "滚动
  103. nm j <Down>
  104. nm k <Up>
  105. no J <C-d>
  106. no K <C-u>
  107.  
  108. "Fix scroll
  109. nm e :js buffer.focusElement(Buffer.findScrollableWindow().document.documentElement); liberator.echomsg("Let me scroll!");<CR>
  110.  
  111. "标签
  112. nm h gT
  113. nm l gt
  114. nm H :tabm -1<CR>
  115. nm L :tabm +1<CR>
  116. nm C :st<CR>
  117. no p P
  118. no P p
  119. nm <C-p> :se app!<CR>
  120.  
  121. "移除左/右侧紧邻标签页
  122. nm w :js var tab = tabs.getTab(); if(tab.previousSibling) tabs.remove(tab.previousSibling);<CR>
  123. nm W :js var tab = tabs.getTab(); if(tab.nextSibling) tabs.remove(tab.nextSibling);<CR>
  124.  
  125. "历史
  126. nm , <A-Left>
  127. nm . <A-Right>
  128. nm <lt> <C-o>
  129. nm > <C-i>
  130. nm U :u<Space>
  131. nm <A-d> :hs<CR>
  132.  
  133. "复制粘贴
  134. im <C-a> <C-Home><C-S-End>
  135. cm <C-a> <C-Home><C-S-End>
  136. no <C-a> i<C-a>
  137. map y <C-c>
  138. no Y y
  139. no gi gi<C-e>
  140.  
  141. "输入模式
  142. ino <C-9> <C-a>
  143. ino <C-0> <C-e>
  144. cno <C-9> <C-a>
  145. cno <C-0> <C-e>
  146. im <A-n> <Down>
  147. im <A-p> <Up>
  148. cm <A-n> <Down>
  149. cm <A-p> <Up>
  150.  
  151. "其它
  152. nm d <C-w>
  153. nm <C-Tab> i<C-Tab>
  154. no <C-d> i<C-d>
  155. no <C-u> i<C-u>
  156. no <C-g> g<C-g>
  157. no g<C-g> <C-g>
  158.  
  159. "配置文件
  160. "nm <C-A-e> :js editor.editFileExternally("D:/Firefox/Vimperator/_vimperatorrc");<CR>
  161. js mappings.addUserMap([modes.NORMAL], ["<C-A-e>"], "", function() { editor.editFileExternally("D:/Firefox/vimperator/_vimperatorrc"); })
  162. nm <C-A-r> :js io.source("D:/Firefox/vimperator/_vimperatorrc"); liberator.echomsg("_vimperatorrc has been loaded");<CR>
  163.  
  164. "=================================================
  165. " 网站
  166. "=================================================
  167.  
  168. "Focus the content
  169. se fc
  170.  
  171. "Pass Through
  172. se passthrough
  173.  
  174. "pdf.js
  175. nm -u=\.pdf$ e :js content.document.getElementById("viewerContainer").focus();<CR>
  176.  
  177. "about:config
  178. nm -u=^about:config$ gi :js content.document.getElementById("textbox").focus();<CR>
  179.  
  180. "vim: ft=vimperator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement