You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Vimium.md 4.5 KiB

3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. ## Vimium - The Hacker\'s Browser
  2. This is a Chrome extension that provides vim navigation for chrome.
  3. ## Installation
  4. A stable version of vimium is available at [Chrome Extensions
  5. Gallery](https://chrome.google.com/extensions/detail/dbepggeogbaibhgnhhndojpepiihcmeb)
  6. ## Keyboard Bindings
  7. To access the options
  8. `press ?`
  9. or chrome extensions page
  10. [`chrome://extensions`](chrome://extensions)
  11. Once vimium is installed then you can see all the key bindings by
  12. pressing
  13. `?`
  14. ### To navigate the current page
  15. `? show the help dialog for a list of all available keys`\
  16. `h scroll left`\
  17. `j scroll down`\
  18. `k scroll up`\
  19. `l scroll right`\
  20. `gg scroll to top of the page`\
  21. `G scroll to bottom of the page`\
  22. `d scroll down half a page`\
  23. `u scroll up half a page`\
  24. `f open a link in the current tab`\
  25. `F open a link in a new tab`\
  26. `r reload`\
  27. `gs view source`\
  28. `i enter insert mode -- all commands will be ignored until you hit Esc to exit`\
  29. `yy copy the current url to the clipboard`\
  30. `yf copy a link url to the clipboard`\
  31. `gf cycle forward to the next frame`\
  32. `gF focus the main/top frame`
  33. ### Navigating to new pages
  34. `o Open URL, bookmark, or history entry`\
  35. `O Open URL, bookmark, history entry in a new tab`\
  36. `b Open bookmark`\
  37. `B Open bookmark in a new tab`
  38. ### Using find
  39. `/ enter find mode`\
  40. `-- type your search query and hit enter to search, or Esc to cancel`\
  41. `n cycle forward to the next find match`\
  42. `N cycle backward to the previous find match`
  43. For advanced usage, see [regular
  44. expressions](https://github.com/philc/vimium/wiki/Find-Mode) on the
  45. wiki.
  46. ### Navigating your history
  47. `H go back in history`\
  48. `L go forward in history`
  49. ### Manipulating tabs
  50. `J, gT go one tab left`\
  51. `K, gt go one tab right`\
  52. `g0 go to the first tab`\
  53. `g$ go to the last tab`\
  54. `^ visit the previously-visited tab`\
  55. `t create tab`\
  56. `yt duplicate current tab`\
  57. `x close current tab`\
  58. `X restore closed tab (i.e. unwind the 'x' command)`\
  59. `T search through your open tabs`\
  60. <a-p>`pin/unpin current tab`
  61. ### Using Marks
  62. `ma, mA set local mark "a" (global mark "A")`\
  63. `` `a, `A jump to local mark "a" (global mark "A") ``\
  64. ` `` jump back to the position before the previous jump `\
  65. `` -- that is, before the previous gg, G, n, N, / or `a ``
  66. ### Additional advanced browsing commands
  67. `]], [[ Follow the link labeled 'next' or '>' ('previous' or '<')`\
  68. `- helpful for browsing paginated sites`\
  69. <a-f>`open multiple links in a new tab`\
  70. `gi focus the first (or n-th) text input box on the page`\
  71. `gu go up one level in the URL hierarchy`\
  72. `gU go up to root of the URL hierarchy`\
  73. `ge edit the current URL`\
  74. `gE edit the current URL and open in a new tab`\
  75. `zH scroll all the way left`\
  76. `zL scroll all the way right`\
  77. `v enter visual mode; use p/P to paste-and-go, use y to yank`\
  78. `V enter visual line mode`
  79. ### Custom key mappings
  80. You may remap or unmap any of the default key bindings in the \"Custom
  81. key mappings\" on the options page.
  82. Enter one of the following key mapping commands per line:
  83. Maps a key to a Vimium command. Overrides Chrome\'s default behavior (if
  84. any).
  85. * map key command:
  86. Unmaps a key and restores Chrome\'s default behavior (if any).
  87. * unmap key:
  88. Unmaps all bindings. This is useful if you want to completely wipe
  89. Vimium\'s defaults and start from scratch with your own setup.
  90. * unmapAll:
  91. Examples:
  92. Maps ctrl+d to scrolling the page down. Chrome\'s default behavior of
  93. bringing up a bookmark dialog is suppressed.
  94. * map <c-d> scrollPageDown
  95. maps the r key to reloading the page.
  96. * map r reload
  97. removes any mapping for ctrl+d and restores Chrome\'s default behavior.
  98. * unmap <c-d>
  99. removes any mapping for the r key.
  100. * unmap r
  101. Available Vimium commands can be found via the \"Show available
  102. commands\" link near the key mapping box on the options page. The
  103. command name appears to the right of the description in parenthesis.
  104. You can add comments to key mappings by starting a line with \" or \#.
  105. The following special keys are available for mapping:
  106. * <c-_>, <a-_>, <m-_> for ctrl, alt, and meta (command on Mac) respectively with any key. Replace _ with the key of choice.
  107. * <left>, <right>, <up>, <down> for the arrow keys
  108. * <space> and <backspace> for the space and backspace keys
  109. * <f1> through <f12> for the function keys
  110. Shifts are automatically detected so, for example, \<c-&\> corresponds
  111. to ctrl+shift+7 on an English keyboard.
  112. ## More Documentation
  113. Many of the more advanced or involved features are documented on
  114. Vimium\'s github wiki. Also see the FAQ.
  115. ## Check out the Git
  116. <https://github.com/philc/vimium>