mirror of https://github.com/amix/vimrc.git
parent
687184f0bb
commit
630b462208
@ -1,24 +0,0 @@ |
||||
bufexplorer bufexplorer.txt /*bufexplorer* |
||||
bufexplorer-changelog bufexplorer.txt /*bufexplorer-changelog* |
||||
bufexplorer-credits bufexplorer.txt /*bufexplorer-credits* |
||||
bufexplorer-customization bufexplorer.txt /*bufexplorer-customization* |
||||
bufexplorer-installation bufexplorer.txt /*bufexplorer-installation* |
||||
bufexplorer-todo bufexplorer.txt /*bufexplorer-todo* |
||||
bufexplorer-usage bufexplorer.txt /*bufexplorer-usage* |
||||
bufexplorer-windowlayout bufexplorer.txt /*bufexplorer-windowlayout* |
||||
bufexplorer.txt bufexplorer.txt /*bufexplorer.txt* |
||||
buffer-explorer bufexplorer.txt /*buffer-explorer* |
||||
g:bufExplorerChgWin bufexplorer.txt /*g:bufExplorerChgWin* |
||||
g:bufExplorerDefaultHelp bufexplorer.txt /*g:bufExplorerDefaultHelp* |
||||
g:bufExplorerDetailedHelp bufexplorer.txt /*g:bufExplorerDetailedHelp* |
||||
g:bufExplorerFindActive bufexplorer.txt /*g:bufExplorerFindActive* |
||||
g:bufExplorerFuncRef bufexplorer.txt /*g:bufExplorerFuncRef* |
||||
g:bufExplorerReverseSort bufexplorer.txt /*g:bufExplorerReverseSort* |
||||
g:bufExplorerShowDirectories bufexplorer.txt /*g:bufExplorerShowDirectories* |
||||
g:bufExplorerShowRelativePath bufexplorer.txt /*g:bufExplorerShowRelativePath* |
||||
g:bufExplorerShowTabBuffer bufexplorer.txt /*g:bufExplorerShowTabBuffer* |
||||
g:bufExplorerShowUnlisted bufexplorer.txt /*g:bufExplorerShowUnlisted* |
||||
g:bufExplorerSortBy bufexplorer.txt /*g:bufExplorerSortBy* |
||||
g:bufExplorerSplitBelow bufexplorer.txt /*g:bufExplorerSplitBelow* |
||||
g:bufExplorerSplitOutPathName bufexplorer.txt /*g:bufExplorerSplitOutPathName* |
||||
g:bufExplorerSplitRight bufexplorer.txt /*g:bufExplorerSplitRight* |
@ -1,62 +0,0 @@ |
||||
'Tlist_Auto_Highlight_Tag' taglist.txt /*'Tlist_Auto_Highlight_Tag'* |
||||
'Tlist_Auto_Open' taglist.txt /*'Tlist_Auto_Open'* |
||||
'Tlist_Auto_Update' taglist.txt /*'Tlist_Auto_Update'* |
||||
'Tlist_Close_On_Select' taglist.txt /*'Tlist_Close_On_Select'* |
||||
'Tlist_Compact_Format' taglist.txt /*'Tlist_Compact_Format'* |
||||
'Tlist_Ctags_Cmd' taglist.txt /*'Tlist_Ctags_Cmd'* |
||||
'Tlist_Display_Prototype' taglist.txt /*'Tlist_Display_Prototype'* |
||||
'Tlist_Display_Tag_Scope' taglist.txt /*'Tlist_Display_Tag_Scope'* |
||||
'Tlist_Enable_Fold_Column' taglist.txt /*'Tlist_Enable_Fold_Column'* |
||||
'Tlist_Exit_OnlyWindow' taglist.txt /*'Tlist_Exit_OnlyWindow'* |
||||
'Tlist_File_Fold_Auto_Close' taglist.txt /*'Tlist_File_Fold_Auto_Close'* |
||||
'Tlist_GainFocus_On_ToggleOpen' taglist.txt /*'Tlist_GainFocus_On_ToggleOpen'* |
||||
'Tlist_Highlight_Tag_On_BufEnter' taglist.txt /*'Tlist_Highlight_Tag_On_BufEnter'* |
||||
'Tlist_Inc_Winwidth' taglist.txt /*'Tlist_Inc_Winwidth'* |
||||
'Tlist_Max_Submenu_Items' taglist.txt /*'Tlist_Max_Submenu_Items'* |
||||
'Tlist_Max_Tag_Length' taglist.txt /*'Tlist_Max_Tag_Length'* |
||||
'Tlist_Process_File_Always' taglist.txt /*'Tlist_Process_File_Always'* |
||||
'Tlist_Show_Menu' taglist.txt /*'Tlist_Show_Menu'* |
||||
'Tlist_Show_One_File' taglist.txt /*'Tlist_Show_One_File'* |
||||
'Tlist_Sort_Type' taglist.txt /*'Tlist_Sort_Type'* |
||||
'Tlist_Use_Horiz_Window' taglist.txt /*'Tlist_Use_Horiz_Window'* |
||||
'Tlist_Use_Right_Window' taglist.txt /*'Tlist_Use_Right_Window'* |
||||
'Tlist_Use_SingleClick' taglist.txt /*'Tlist_Use_SingleClick'* |
||||
'Tlist_WinHeight' taglist.txt /*'Tlist_WinHeight'* |
||||
'Tlist_WinWidth' taglist.txt /*'Tlist_WinWidth'* |
||||
:TlistAddFiles taglist.txt /*:TlistAddFiles* |
||||
:TlistAddFilesRecursive taglist.txt /*:TlistAddFilesRecursive* |
||||
:TlistClose taglist.txt /*:TlistClose* |
||||
:TlistDebug taglist.txt /*:TlistDebug* |
||||
:TlistHighlightTag taglist.txt /*:TlistHighlightTag* |
||||
:TlistLock taglist.txt /*:TlistLock* |
||||
:TlistMessages taglist.txt /*:TlistMessages* |
||||
:TlistOpen taglist.txt /*:TlistOpen* |
||||
:TlistSessionLoad taglist.txt /*:TlistSessionLoad* |
||||
:TlistSessionSave taglist.txt /*:TlistSessionSave* |
||||
:TlistShowPrototype taglist.txt /*:TlistShowPrototype* |
||||
:TlistShowTag taglist.txt /*:TlistShowTag* |
||||
:TlistToggle taglist.txt /*:TlistToggle* |
||||
:TlistUndebug taglist.txt /*:TlistUndebug* |
||||
:TlistUnlock taglist.txt /*:TlistUnlock* |
||||
:TlistUpdate taglist.txt /*:TlistUpdate* |
||||
Tlist_Get_Tag_Prototype_By_Line() taglist.txt /*Tlist_Get_Tag_Prototype_By_Line()* |
||||
Tlist_Get_Tagname_By_Line() taglist.txt /*Tlist_Get_Tagname_By_Line()* |
||||
Tlist_Set_App() taglist.txt /*Tlist_Set_App()* |
||||
Tlist_Update_File_Tags() taglist.txt /*Tlist_Update_File_Tags()* |
||||
taglist-commands taglist.txt /*taglist-commands* |
||||
taglist-debug taglist.txt /*taglist-debug* |
||||
taglist-extend taglist.txt /*taglist-extend* |
||||
taglist-faq taglist.txt /*taglist-faq* |
||||
taglist-functions taglist.txt /*taglist-functions* |
||||
taglist-install taglist.txt /*taglist-install* |
||||
taglist-internet taglist.txt /*taglist-internet* |
||||
taglist-intro taglist.txt /*taglist-intro* |
||||
taglist-keys taglist.txt /*taglist-keys* |
||||
taglist-license taglist.txt /*taglist-license* |
||||
taglist-menu taglist.txt /*taglist-menu* |
||||
taglist-options taglist.txt /*taglist-options* |
||||
taglist-requirements taglist.txt /*taglist-requirements* |
||||
taglist-session taglist.txt /*taglist-session* |
||||
taglist-todo taglist.txt /*taglist-todo* |
||||
taglist-using taglist.txt /*taglist-using* |
||||
taglist.txt taglist.txt /*taglist.txt* |
@ -1,10 +0,0 @@ |
||||
expand-region-about expand_region.txt /*expand-region-about* |
||||
expand-region-contents expand_region.txt /*expand-region-contents* |
||||
expand-region-global-options expand_region.txt /*expand-region-global-options* |
||||
expand-region-intro expand_region.txt /*expand-region-intro* |
||||
expand-region-mappings expand_region.txt /*expand-region-mappings* |
||||
expand-region-usage expand_region.txt /*expand-region-usage* |
||||
expand_region_text_objects expand_region.txt /*expand_region_text_objects* |
||||
expand_region_use_select_mode expand_region.txt /*expand_region_use_select_mode* |
||||
vim-expand-region.txt expand_region.txt /*vim-expand-region.txt* |
||||
vim-expand-regions expand_region.txt /*vim-expand-regions* |
@ -1,5 +1,11 @@ |
||||
require 'rspec/core/rake_task' |
||||
|
||||
RSpec::Core::RakeTask.new(:spec) |
||||
RSpec::Core::RakeTask.new(:spec) do |t| |
||||
t.pattern = 'spec/multiple_cursors_spec.rb' |
||||
end |
||||
|
||||
RSpec::Core::RakeTask.new(:benchmark) do |t| |
||||
t.pattern = 'spec/benchmark_spec.rb' |
||||
end |
||||
|
||||
task :default => :spec |
||||
|
@ -1,21 +0,0 @@ |
||||
MultipleCursorsFind multiple_cursors.txt /*MultipleCursorsFind* |
||||
g:multi_cursor_exit_from_insert_mode multiple_cursors.txt /*g:multi_cursor_exit_from_insert_mode* |
||||
g:multi_cursor_exit_from_visual_mode multiple_cursors.txt /*g:multi_cursor_exit_from_visual_mode* |
||||
g:multi_cursor_next_key multiple_cursors.txt /*g:multi_cursor_next_key* |
||||
g:multi_cursor_prev_key multiple_cursors.txt /*g:multi_cursor_prev_key* |
||||
g:multi_cursor_quit_key multiple_cursors.txt /*g:multi_cursor_quit_key* |
||||
g:multi_cursor_skip_key multiple_cursors.txt /*g:multi_cursor_skip_key* |
||||
g:multi_cursor_start_key multiple_cursors.txt /*g:multi_cursor_start_key* |
||||
g:multi_cursor_use_default_mapping multiple_cursors.txt /*g:multi_cursor_use_default_mapping* |
||||
multiple-cursors-contents multiple_cursors.txt /*multiple-cursors-contents* |
||||
multiple-cursors-contributing multiple_cursors.txt /*multiple-cursors-contributing* |
||||
multiple-cursors-credit multiple_cursors.txt /*multiple-cursors-credit* |
||||
multiple-cursors-global-options multiple_cursors.txt /*multiple-cursors-global-options* |
||||
multiple-cursors-intro multiple_cursors.txt /*multiple-cursors-intro* |
||||
multiple-cursors-issues multiple_cursors.txt /*multiple-cursors-issues* |
||||
multiple-cursors-license multiple_cursors.txt /*multiple-cursors-license* |
||||
multiple-cursors-mappings multiple_cursors.txt /*multiple-cursors-mappings* |
||||
multiple-cursors-references multiple_cursors.txt /*multiple-cursors-references* |
||||
multiple-cursors-usage multiple_cursors.txt /*multiple-cursors-usage* |
||||
vim-multiple-cursors multiple_cursors.txt /*vim-multiple-cursors* |
||||
vim-multiple-cursors.txt multiple_cursors.txt /*vim-multiple-cursors.txt* |
@ -0,0 +1,141 @@ |
||||
require 'vimrunner' |
||||
require 'vimrunner/rspec' |
||||
|
||||
Vimrunner::RSpec.configure do |config| |
||||
|
||||
# Use a single Vim instance for the test suite. Set to false to use an |
||||
# instance per test (slower, but can be easier to manage). |
||||
config.reuse_server = false |
||||
|
||||
# Decide how to start a Vim instance. In this block, an instance should be |
||||
# spawned and set up with anything project-specific. |
||||
config.start_vim do |
||||
# vim = Vimrunner.start |
||||
# vim = Vimrunner::Server.new("/usr/local/bin/vim").start |
||||
|
||||
# Or, start a GUI instance: |
||||
vim = Vimrunner.start_gvim |
||||
|
||||
# Setup your plugin in the Vim instance |
||||
plugin_path = File.expand_path('../..', __FILE__) |
||||
vim.add_plugin(plugin_path, 'plugin/multiple_cursors.vim') |
||||
|
||||
# The returned value is the Client available in the tests. |
||||
vim |
||||
end |
||||
end |
||||
|
||||
def set_file_content(string) |
||||
string = normalize_string_indent(string) |
||||
File.open(filename, 'w'){ |f| f.write(string) } |
||||
vim.edit filename |
||||
end |
||||
|
||||
def get_file_content() |
||||
vim.write |
||||
IO.read(filename).strip |
||||
end |
||||
|
||||
def before(string) |
||||
set_file_content(string) |
||||
end |
||||
|
||||
def after(string) |
||||
get_file_content().should eq normalize_string_indent(string) |
||||
type ":q<CR>" |
||||
end |
||||
|
||||
def type(string) |
||||
string.scan(/<.*?>|./).each do |key| |
||||
if /<.*>/.match(key) |
||||
vim.feedkeys "\\#{key}" |
||||
else |
||||
vim.feedkeys key |
||||
end |
||||
end |
||||
sleep 0.2 |
||||
end |
||||
|
||||
describe "Multiple Cursors" do |
||||
let(:filename) { 'test.txt' } |
||||
|
||||
specify "#benchmark" do |
||||
before <<-EOF |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
hello |
||||
EOF |
||||
|
||||
# type ':profile start /tmp/test.result<CR>' |
||||
# type ':profile! file *multiple_cursors.vim<CR>' |
||||
type ':let g:multi_cursor_debug_latency=1<CR>' |
||||
|
||||
type 'VG<C-n>Vchellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello<Esc>' |
||||
|
||||
type ':echo multiple_cursors#get_latency_debug_file()<CR>' |
||||
sleep 3 |
||||
latency_file = vim.command 'echo multiple_cursors#get_latency_debug_file()' |
||||
puts 'latency file = ' + latency_file |
||||
|
||||
after <<-EOF |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello |
||||
EOF |
||||
end |
||||
|
||||
end |
Loading…
Reference in new issue