summary refs log tree commit diff
path: root/Functions/Zle/bash-forward-word
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/bash-forward-word')
-rw-r--r--Functions/Zle/bash-forward-word9
1 files changed, 9 insertions, 0 deletions
diff --git a/Functions/Zle/bash-forward-word b/Functions/Zle/bash-forward-word
new file mode 100644
index 000000000..963ea012a
--- /dev/null
+++ b/Functions/Zle/bash-forward-word
@@ -0,0 +1,9 @@
+# This implements a bash-style forward-word.
+# To use,
+#   zle -N bash-forward-word
+#   bindkey '...' bash-forward-word
+# or if you wish to replace existing forward-word bindings,
+#   zle -N forward-word bash-forward-word
+
+local WORDCHARS=''
+zle .forward-word