aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-14 22:39:53 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-14 22:39:53 +0000
commit83808e44f8fb69c233fc192a7efe0d626e720b5c (patch)
treeed38ef6b7f01a1dc542a9011fa2bd10642a02268 /vim-mode
parentvim_mode: Add 'start_cmd' option. (diff)
downloadirssi-scripts-83808e44f8fb69c233fc192a7efe0d626e720b5c.tar.gz
irssi-scripts-83808e44f8fb69c233fc192a7efe0d626e720b5c.zip
vim_mode: Make :set more vim-like, :set option=value.
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index e119d8f..f90364e 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -118,6 +118,11 @@
#
# In contrast to irssi's settings, :set accepts 0 and 1 as values for boolean
# settings, but only vim_mode's settings can be set/displayed.
+# Examples:
+# :set cmd_seq=j # set cmd_seq to j
+# :set cmd_seq= # disable cmd_seq
+# :set debug=on # enable debug
+# :set debug=off # disable debug
#
#
# The following statusbar items are available:
@@ -1910,7 +1915,7 @@ sub ex_set {
my ($arg_str, $count) = @_;
# :se[t] [option] [value]
- if ($arg_str =~ /^se(?:t)?(?:\s(\S+)(?:\s(.+)$)?)?/) {
+ if ($arg_str =~ /^se(?:t)?(?:\s([^=]+)(?:=(.*)$)?)?/) {
# :se[t] {option} {value}
if (defined $1 and defined $2) {
if (not exists $settings->{$1}) {