diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-14 22:39:53 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-14 22:39:53 +0000 |
commit | 83808e44f8fb69c233fc192a7efe0d626e720b5c (patch) | |
tree | ed38ef6b7f01a1dc542a9011fa2bd10642a02268 | |
parent | vim_mode: Add 'start_cmd' option. (diff) | |
download | irssi-scripts-83808e44f8fb69c233fc192a7efe0d626e720b5c.tar.gz irssi-scripts-83808e44f8fb69c233fc192a7efe0d626e720b5c.zip |
vim_mode: Make :set more vim-like, :set option=value.
-rw-r--r-- | vim-mode/vim_mode.pl | 7 |
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}) { |