示例#1
0
 protected void Create(params string[] lines)
 {
     _vimBuffer       = CreateVimBuffer(lines);
     _textBuffer      = _vimBuffer.TextBuffer;
     _vimKeyProcessor = new VimKeyProcessor(_vimBuffer, KeyUtil);
     _simulation      = new KeyProcessorSimulation((IWpfTextView)_vimBuffer.TextView);
     _simulation.KeyProcessors.Add(_vimKeyProcessor);
 }
示例#2
0
 protected void Create(params string[] lines)
 {
     _vimBuffer = CreateVimBuffer(lines);
     _textBuffer = _vimBuffer.TextBuffer;
     _vimKeyProcessor = new VimKeyProcessor(_vimBuffer, KeyUtil);
     _simulation = new KeyProcessorSimulation((IWpfTextView)_vimBuffer.TextView);
     _simulation.KeyProcessors.Add(_vimKeyProcessor);
 }