aboutsummaryrefslogtreecommitdiffstats
path: root/README.markdown
diff options
context:
space:
mode:
authorilya2011-02-20 14:16:01 -0800
committerilya2011-02-20 14:16:01 -0800
commitb80692d6288b5c9343397df2c9cdf1ce387ceaa2 (patch)
tree59480522feb24d6f332dffb241a4a2e8088db390 /README.markdown
parent7ea24c1cc144646216c017b43b345c9b56d60370 (diff)
downloadvimium-b80692d6288b5c9343397df2c9cdf1ce387ceaa2.tar.bz2
Added a section on key mappings to the README. Also updated and cleaned it up in general.
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown80
1 files changed, 63 insertions, 17 deletions
diff --git a/README.markdown b/README.markdown
index b4d93a02..67241a06 100644
--- a/README.markdown
+++ b/README.markdown
@@ -11,19 +11,22 @@ You can install the stable version of Vimium from the
Alternatively, you can install it from source:
-1. Navigate to chrome://extensions
-2. Click on "Load Extension..."
-3. Select the vimium directory.
+1. Navigate to `chrome://extensions`
+2. Toggle into Developer Mode
+3. Click on "Load Unpacked Extension..."
+4. Select the Vimium directory.
-The Settings page can be found by clicking the Options button next to Vimium on chrome://extensions.
+The Options page can be reached via a link on the help dialog (hit `?`) or via the button next to Vimium on
+the Chrome Extensions page (`chrome://extensions`).
Keyboard Bindings
-----------------
-Modifier keys are specified as <c-x>, <m-x>, <a-x> for ctrl+x, meta+x, and alt+x
-respectively. You can change any of these shortcuts under "Advanced Options".
+Modifier keys are specified as &lt;c-x&gt; &lt;m-x&gt;, &lt;a-x&gt; for ctrl+x, meta+x, and alt+x
+respectively. See the next section for instructions on modifying these bindings.
Navigating the current page:
+ ? show the help dialog for a list of all available keys
h scroll left
j scroll down
k scroll up
@@ -70,9 +73,44 @@ Additional advanced browsing commands:
Vimium supports command repetition so, for example, hitting '5t' will open 5 tabs in rapid succession. ESC (or
-<c-[>) will clear any partial commands in the queue.
+&lt;c-[&gt;) will clear any partial commands in the queue and will also exit insert and find modes.
+Custom Key Mappings
+-------------------
+
+You may remap or unmap any of the default key bindings in the "Key mappings" section under "Advanced Options"
+on the options page.
+
+Enter one of the following key mapping commands per line:
+
+- `map key command`: Maps a key to a Vimium command. Overrides Chrome's default behavior (if any).
+- `unmap key`: Unmaps a key and restores Chrome's default behavior (if any).
+- `unmapAll`: Unmaps all bindings. This is useful if you want to completely wipe Vimium's defaults and start
+ from scratch with your own setup.
+
+Examples:
+
+- `map <c-d> scrollPageDown` maps ctrl+d to scrolling the page down. Chrome's default behavior of bringing up
+ a bookmark dialog is suppressed.
+- `map r reload` maps the r key to reloading the page.
+- `unmap <c-d>` removes any mapping for ctrl+d and restores Chrome's default behavior.
+- `unmap r` removes any mapping for the r key.
+
+Available Vimium commands can be found via the "Show Available Commands" link near the key mapping box. The
+command name appears to the right of the description in parenthesis.
+
+You can add comments to your key mappings by starting a line with `"` or `#`.
+
+The following special keys are available for mapping:
+
+- `<c-*>`, `<a-*>`, `<m-*>` for ctrl, alt, and meta (command on Mac) respectively with any key. Replace `*`
+ with the key of choice.
+- `<left>`, `<right>`, `<up>`, `<down>` for the arrow keys
+- `<f1>` through `<f12>` for the function keys
+
+Shifts are automatically detected so, for example, `<c-&>` corresponds to ctrl+shift+7 on an English keyboard.
+
Contributing
------------
@@ -82,7 +120,8 @@ discussion on the issues tracker or on the [mailing list][list_url]. If it mirro
another browser or in Vim itself, let us know! Once you've picked something to work on, add a comment to the
respective issue so others don't duplicate your effort.
-When you're done, send us a pull request on Github. Feel free to include a change to the CREDITS file with your patch.
+When you're done, send us a pull request on Github. Feel free to include a change to the CREDITS file with
+your patch.
[list_url]: http://groups.google.com/group/vimium-dev?hl=en
@@ -103,7 +142,8 @@ Release Notes
- View source (`gs`) now opens in a new tab.
- Support for browsing paginated sites using `]]` and `[[` to go forward and backward respectively.
- `z0` will reset the zoom level for the current page.
-- Many of the less-used commands are now marked as "advanced" and hidden in the help dialog by default, so that the core command set is more focused and approachable.
+- Many of the less-used commands are now marked as "advanced" and hidden in the help dialog by default, so
+ that the core command set is more focused and approachable.
- Improvements to link hinting.
- Bugfixes.
@@ -113,7 +153,8 @@ Release Notes
1.20 (10/24/2010)
-- In link hints mode, holding down the shift key will now toggle between opening in the current tab and opening in a new tab.
+- In link hints mode, holding down the shift key will now toggle between opening in the current tab and
+ opening in a new tab.
- Two new commands (`zH` and `zL`) to scroll to the left and right edges of the page.
- A new command (`gi`) to focus the first (or n-th) text input box on the page.
- A new command (`<a-f>`) to open up multiple links at a time in new tabs.
@@ -130,13 +171,17 @@ Release Notes
- Vimium now runs on pages with file:/// and ftp:///
- The Options page is now linked from the Help dialog.
-- Arrow keys and function keys can now be mapped using &lt;left&gt;, &lt;right&gt;, &lt;up&gt;, &lt;down&gt;, &lt;f1&gt;, &lt;f2&gt;, etc. in the mappings interface.
-- There is a new command `goUp` (mapped to `gu` by default) that will go up one level in the URL hierarchy. For example: from http://vimium.github.com/foo/bar to http://vimium.github.com/foo. At the moment, `goUp` does not support command repetition.
+- Arrow keys and function keys can now be mapped using &lt;left&gt;, &lt;right&gt;, &lt;up&gt;, &lt;down&gt;,
+ &lt;f1&gt;, &lt;f2&gt;, etc. in the mappings interface.
+- There is a new command `goUp` (mapped to `gu` by default) that will go up one level in the URL hierarchy.
+ For example: from http://vimium.github.com/foo/bar to http://vimium.github.com/foo. At the moment, `goUp`
+does not support command repetition.
- Bug fixes and optimizations.
1.17 (04/18/2010)
-- 'u' now restores tabs that were closed by the mouse or with native shortcuts. Tabs are also restored in their prior position.
+- 'u' now restores tabs that were closed by the mouse or with native shortcuts. Tabs are also restored in
+ their prior position.
- New 'unmapAll' command in the key mappings interface to remove all default mappings.
- Link hints are now faster and more reliable.
- Bug fixes.
@@ -160,12 +205,12 @@ Release Notes
1.13 (01/21/2010)
-- <c-f> and <c-b> are now mapped to scroll a full page up or down respectively.
+- `<c-f>` and `<c-b>` are now mapped to scroll a full page up or down respectively.
- Bugfixes related to entering insert mode when the page first loads, and when focusing Flash embeds.
- Added command listing to the Options page for easy reference.
- J & K have reversed for tab switching: J goes left and K goes right.
-- <c-[> is now equivalent to ESC, to match the behavior of VIM.
-- <c-e> & <c-y> are now mapped to scroll down and up respectively.
+- `<c-[>` is now equivalent to ESC, to match the behavior of VIM.
+- `<c-e>` and `<c-y>` are now mapped to scroll down and up respectively.
- The characters used for link hints are now configurable under Advanced Options.
1.11, 1.12 (01/08/2010)
@@ -179,7 +224,8 @@ Release Notes
1.1 (01/03/2010)
- A nicer looking settings page.
-- An exclusion list that allows you to define URL patterns for which Vimium will be disabled (e.g. http\*://mail.google.com/\*).
+- An exclusion list that allows you to define URL patterns for which Vimium will be disabled (e.g.
+ http\*://mail.google.com/\*).
- Vimium-interpreted keystrokes are no longer sent to the page.
- Better Windows support.
- Various miscellaneous bug fixes and UI improvements.