aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_visual.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-14 10:35:10 +0100
committerStephen Blott2016-04-14 10:35:10 +0100
commitf9c00d9d56373566c034685d0e4bb99ff3b0367b (patch)
tree0cf92a9f1484666294b7a329919e598efac6e5cc /content_scripts/mode_visual.coffee
parentf144c7c9d3f141636ce6a3856db3abf08a4fc063 (diff)
parent72ff4204655b8e87f7bdfbe8c9974376fbbc15a6 (diff)
downloadvimium-f9c00d9d56373566c034685d0e4bb99ff3b0367b.tar.bz2
Merge pull request #2093 from smblott-github/c-y-c-e-for-visual-mode
Add <c-y> and <c-e> for visual mode.
Diffstat (limited to 'content_scripts/mode_visual.coffee')
-rw-r--r--content_scripts/mode_visual.coffee8
1 files changed, 6 insertions, 2 deletions
diff --git a/content_scripts/mode_visual.coffee b/content_scripts/mode_visual.coffee
index 8c1fb5a4..97ad5ca6 100644
--- a/content_scripts/mode_visual.coffee
+++ b/content_scripts/mode_visual.coffee
@@ -223,8 +223,12 @@ class VisualMode extends KeyHandlerMode
keyMapping[keys[0]] ?= {}
extend keyMapping[keys[0]], "#{keys[1]}": command: movement
- # Aliases.
- extend keyMapping, "B": keyMapping.b, "W": keyMapping.w
+ # Aliases and complex bindings.
+ extend keyMapping,
+ "B": keyMapping.b
+ "W": keyMapping.w
+ "<c-e>": command: (count) -> Scroller.scrollBy "y", count * Settings.get("scrollStepSize"), 1, false
+ "<c-y>": command: (count) -> Scroller.scrollBy "y", -count * Settings.get("scrollStepSize"), 1, false
super extend options,
name: options.name ? "visual"