Permalink
Browse files

`set timeout' on match window creation and restore on close

See:

  https://wincent.com/forums/command-t/topics/432

Signed-off-by: Wincent Colaiuta <win@wincent.com>
  • Loading branch information...
guns authored and wincent committed Sep 13, 2010
1 parent c17c886 commit e068c66acc7571837c917efc01b70890d96806e1
Showing with 3 additions and 0 deletions.
  1. +1 −0 ruby/command-t/match_window.rb
  2. +2 −0 ruby/command-t/settings.rb
@@ -42,6 +42,7 @@ def initialize options = {}

# global settings (must manually save and restore)
@settings = Settings.new
::VIM::set_option 'timeout' # ensure mappings timeout
::VIM::set_option 'timeoutlen=0' # respond immediately to mappings
::VIM::set_option 'nohlsearch' # don't highlight search strings
::VIM::set_option 'noinsertmode' # don't make Insert mode the default
@@ -33,6 +33,7 @@ def save
@report = get_number 'report'
@sidescroll = get_number 'sidescroll'
@sidescrolloff = get_number 'sidescrolloff'
@timeout = get_bool 'timeout'
@equalalways = get_bool 'equalalways'
@hlsearch = get_bool 'hlsearch'
@insertmode = get_bool 'insertmode'
@@ -44,6 +45,7 @@ def restore
set_number 'report', @report
set_number 'sidescroll', @sidescroll
set_number 'sidescrolloff', @sidescrolloff
set_bool 'timeout', @timeout
set_bool 'equalalways', @equalalways
set_bool 'hlsearch', @hlsearch
set_bool 'insertmode', @insertmode

0 comments on commit e068c66

Please sign in to comment.