mirror of
https://github.com/amix/vimrc
synced 2025-07-12 06:05:01 +08:00
rename vim_plugins_src to vim_plugin_candinates_src and used as an plugin candinate dir
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
==== s_read_clipboard on cygwin
|
||||
|
||||
==== s_write_clipboard on cygwin
|
||||
|
||||
|
||||
|
||||
**** Result ****
|
||||
|
||||
|
||||
0 examples, 0 failures
|
@ -0,0 +1,22 @@
|
||||
" Test: vim-fakeclip clipboard-cygwin
|
||||
runtime! plugin/fakeclip.vim
|
||||
call vspec#hint({
|
||||
\ 'scope': 'fakeclip#_local_variables()',
|
||||
\ 'sid': 'fakeclip#_sid_prefix()',
|
||||
\ })
|
||||
function s:describe__s_read_clipboard__on_cygwin() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_clipboard__on_cygwin() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
" __END__ "{{{1
|
||||
" vim: filetype=vim foldmethod=marker
|
@ -0,0 +1,10 @@
|
||||
==== s_read_clipboard on mac
|
||||
|
||||
==== s_write_clipboard on mac
|
||||
|
||||
|
||||
|
||||
**** Result ****
|
||||
|
||||
|
||||
0 examples, 0 failures
|
@ -0,0 +1,22 @@
|
||||
" Test: vim-fakeclip clipboard-mac
|
||||
runtime! plugin/fakeclip.vim
|
||||
call vspec#hint({
|
||||
\ 'scope': 'fakeclip#_local_variables()',
|
||||
\ 'sid': 'fakeclip#_sid_prefix()',
|
||||
\ })
|
||||
function s:describe__s_read_clipboard__on_mac() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_clipboard__on_mac() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
" __END__ "{{{1
|
||||
" vim: filetype=vim foldmethod=marker
|
@ -0,0 +1,10 @@
|
||||
==== s_read_clipboard on x
|
||||
|
||||
==== s_write_clipboard on x
|
||||
|
||||
|
||||
|
||||
**** Result ****
|
||||
|
||||
|
||||
0 examples, 0 failures
|
@ -0,0 +1,22 @@
|
||||
" Test: vim-fakeclip clipboard-x
|
||||
runtime! plugin/fakeclip.vim
|
||||
call vspec#hint({
|
||||
\ 'scope': 'fakeclip#_local_variables()',
|
||||
\ 'sid': 'fakeclip#_sid_prefix()',
|
||||
\ })
|
||||
function s:describe__s_read_clipboard__on_x() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_clipboard__on_x() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
" __END__ "{{{1
|
||||
" vim: filetype=vim foldmethod=marker
|
@ -0,0 +1,40 @@
|
||||
==== fakeclip_clipboard_yank
|
||||
|
||||
==== fakeclip_content
|
||||
|
||||
==== fakeclip_put
|
||||
|
||||
==== fakeclip_screen_yank
|
||||
|
||||
==== fakeclip_yank
|
||||
|
||||
==== fakeclip_yank_Y
|
||||
|
||||
==== s_count
|
||||
|
||||
==== s_read_clipboard_unknown
|
||||
|
||||
==== s_read_screen if unavailable
|
||||
|
||||
==== s_restore_register
|
||||
|
||||
==== s_save_register
|
||||
|
||||
==== s_select_last_motion with block
|
||||
|
||||
==== s_select_last_motion with char
|
||||
|
||||
==== s_select_last_motion with line
|
||||
|
||||
==== s_select_last_motion with visual
|
||||
|
||||
==== s_write_clipboard_unknown
|
||||
|
||||
==== s_write_screen if unavailable
|
||||
|
||||
|
||||
|
||||
**** Result ****
|
||||
|
||||
|
||||
0 examples, 0 failures
|
127
vim_plugin_candinates_src/vim-fakeclip-0.2.10/test/misc.input
Normal file
127
vim_plugin_candinates_src/vim-fakeclip-0.2.10/test/misc.input
Normal file
@ -0,0 +1,127 @@
|
||||
" Test: vim-fakeclip misc
|
||||
runtime! plugin/fakeclip.vim
|
||||
call vspec#hint({
|
||||
\ 'scope': 'fakeclip#_local_variables()',
|
||||
\ 'sid': 'fakeclip#_sid_prefix()',
|
||||
\ })
|
||||
function s:describe__fakeclip_clipboard_yank() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__fakeclip_content() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__fakeclip_put() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__fakeclip_screen_yank() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__fakeclip_yank() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__fakeclip_yank_Y() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_count() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_read_clipboard_unknown() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_read_screen__if_unavailable() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_restore_register() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_save_register() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_select_last_motion__with_char() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_select_last_motion__with_line() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_select_last_motion__with_block() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_select_last_motion__with_visual() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_clipboard_unknown() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_screen__if_unavailable() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
" __END__ "{{{1
|
||||
" vim: filetype=vim foldmethod=marker
|
@ -0,0 +1,42 @@
|
||||
==== s_read_pastebuffer
|
||||
---- It should read the paste buffer which contains empty string
|
||||
..
|
||||
---- It should read the paste buffer which contains string without newline
|
||||
..
|
||||
---- It should read the paste buffer which contains single-line string
|
||||
..
|
||||
---- It should read the paste buffer which contains multi-line string
|
||||
..
|
||||
---- It should read the paste buffer which contains multi-line string w/o last LF
|
||||
..
|
||||
---- It should read the paste buffer which is emptied by "register . ''"
|
||||
..
|
||||
|
||||
==== s_read_pastebuffer_gnuscreen
|
||||
---- It should read the paste buffer which contains empty string
|
||||
..
|
||||
---- It should read the paste buffer which contains string without newline
|
||||
..
|
||||
---- It should read the paste buffer which contains single-line string
|
||||
..
|
||||
---- It should read the paste buffer which contains multi-line string
|
||||
..
|
||||
---- It should read the paste buffer which contains multi-line string w/o last LF
|
||||
..
|
||||
---- It should read the paste buffer which is emptied by "register . ''"
|
||||
..
|
||||
|
||||
==== s_write_pastebuffer
|
||||
---- It should succeed
|
||||
.....
|
||||
|
||||
==== s_write_pastebuffer_gnuscreen
|
||||
---- It should succeed
|
||||
.....
|
||||
|
||||
|
||||
|
||||
**** Result ****
|
||||
|
||||
|
||||
34 examples, 0 failures
|
@ -0,0 +1,145 @@
|
||||
" Test: vim-fakeclip pastebuffer-gnuscreen
|
||||
runtime! plugin/fakeclip.vim
|
||||
call vspec#hint({
|
||||
\ 'scope': 'fakeclip#_local_variables()',
|
||||
\ 'sid': 'fakeclip#_sid_prefix()',
|
||||
\ })
|
||||
function! s:write(...) "{{{1
|
||||
let _ = tempname()
|
||||
call writefile(a:000, _, 'b')
|
||||
call system('screen -X readbuf ' . shellescape(_))
|
||||
call delete(_)
|
||||
endfunction
|
||||
let g:fakeclip_delay_to_read_pastebuffer_gnuscreen = '3'
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_read_pastebuffer_gnuscreen() "{{{1
|
||||
It should read the paste buffer which contains empty string
|
||||
|
||||
call s:write('')
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# ''
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# ''
|
||||
|
||||
It should read the paste buffer which contains string without newline
|
||||
|
||||
call s:write('A')
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# 'A'
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# 'A'
|
||||
|
||||
It should read the paste buffer which contains single-line string
|
||||
|
||||
call s:write('B', '')
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "B\n"
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "B\n"
|
||||
|
||||
It should read the paste buffer which contains multi-line string
|
||||
|
||||
call s:write('C', 'D', '')
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "C\nD\n"
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "C\nD\n"
|
||||
|
||||
It should read the paste buffer which contains multi-line string w/o last LF
|
||||
|
||||
call s:write('E', 'F')
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "E\nF"
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "E\nF"
|
||||
|
||||
It should read the paste buffer which is emptied by "register . ''"
|
||||
|
||||
silent !screen -X register . ''
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# ''
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# ''
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_pastebuffer_gnuscreen() "{{{1
|
||||
It should succeed
|
||||
|
||||
call Call('s:write_pastebuffer_gnuscreen', [''])
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# ''
|
||||
|
||||
call Call('s:write_pastebuffer_gnuscreen', ['A'])
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# 'A'
|
||||
|
||||
call Call('s:write_pastebuffer_gnuscreen', ['B', ''])
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "B\n"
|
||||
|
||||
call Call('s:write_pastebuffer_gnuscreen', ['C', 'D', ''])
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "C\nD\n"
|
||||
|
||||
call Call('s:write_pastebuffer_gnuscreen', ['E', 'F'])
|
||||
Should Call('s:read_pastebuffer_gnuscreen') ==# "E\nF"
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_read_pastebuffer() "{{{1
|
||||
It should read the paste buffer which contains empty string
|
||||
|
||||
call s:write('')
|
||||
Should Call('s:read_pastebuffer') ==# ''
|
||||
Should Call('s:read_pastebuffer') ==# ''
|
||||
|
||||
It should read the paste buffer which contains string without newline
|
||||
|
||||
call s:write('A')
|
||||
Should Call('s:read_pastebuffer') ==# 'A'
|
||||
Should Call('s:read_pastebuffer') ==# 'A'
|
||||
|
||||
It should read the paste buffer which contains single-line string
|
||||
|
||||
call s:write('B', '')
|
||||
Should Call('s:read_pastebuffer') ==# "B\n"
|
||||
Should Call('s:read_pastebuffer') ==# "B\n"
|
||||
|
||||
It should read the paste buffer which contains multi-line string
|
||||
|
||||
call s:write('C', 'D', '')
|
||||
Should Call('s:read_pastebuffer') ==# "C\nD\n"
|
||||
Should Call('s:read_pastebuffer') ==# "C\nD\n"
|
||||
|
||||
It should read the paste buffer which contains multi-line string w/o last LF
|
||||
|
||||
call s:write('E', 'F')
|
||||
Should Call('s:read_pastebuffer') ==# "E\nF"
|
||||
Should Call('s:read_pastebuffer') ==# "E\nF"
|
||||
|
||||
It should read the paste buffer which is emptied by "register . ''"
|
||||
|
||||
silent !screen -X register . ''
|
||||
Should Call('s:read_pastebuffer') ==# ''
|
||||
Should Call('s:read_pastebuffer') ==# ''
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_pastebuffer() "{{{1
|
||||
It should succeed
|
||||
|
||||
call Call('s:write_pastebuffer', '')
|
||||
Should Call('s:read_pastebuffer') ==# ''
|
||||
|
||||
call Call('s:write_pastebuffer', 'A')
|
||||
Should Call('s:read_pastebuffer') ==# 'A'
|
||||
|
||||
call Call('s:write_pastebuffer', "B\n")
|
||||
Should Call('s:read_pastebuffer') ==# "B\n"
|
||||
|
||||
call Call('s:write_pastebuffer', "C\nD\n")
|
||||
Should Call('s:read_pastebuffer') ==# "C\nD\n"
|
||||
|
||||
call Call('s:write_pastebuffer', "E\nF")
|
||||
Should Call('s:read_pastebuffer') ==# "E\nF"
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
" __END__ "{{{1
|
||||
" vim: filetype=vim foldmethod=marker
|
@ -0,0 +1,14 @@
|
||||
==== s_read_pastebuffer
|
||||
|
||||
==== s_read_pastebuffer_tmux
|
||||
|
||||
==== s_write_pastebuffer
|
||||
|
||||
==== s_write_pastebuffer_tmux
|
||||
|
||||
|
||||
|
||||
**** Result ****
|
||||
|
||||
|
||||
0 examples, 0 failures
|
@ -0,0 +1,36 @@
|
||||
" Test: vim-fakeclip pastebuffer-tmux
|
||||
runtime! plugin/fakeclip.vim
|
||||
call vspec#hint({
|
||||
\ 'scope': 'fakeclip#_local_variables()',
|
||||
\ 'sid': 'fakeclip#_sid_prefix()',
|
||||
\ })
|
||||
function s:describe__s_read_pastebuffer_tmux() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_pastebuffer_tmux() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_read_pastebuffer() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__s_write_pastebuffer() "{{{1
|
||||
" FIXME: NIY
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
" __END__ "{{{1
|
||||
" vim: filetype=vim foldmethod=marker
|
@ -0,0 +1,12 @@
|
||||
==== commands
|
||||
|
||||
==== named_key_mappings
|
||||
|
||||
==== ui_key_mappings
|
||||
|
||||
|
||||
|
||||
**** Result ****
|
||||
|
||||
|
||||
0 examples, 0 failures
|
29
vim_plugin_candinates_src/vim-fakeclip-0.2.10/test/ui.input
Normal file
29
vim_plugin_candinates_src/vim-fakeclip-0.2.10/test/ui.input
Normal file
@ -0,0 +1,29 @@
|
||||
" Test: vim-fakeclip ui
|
||||
runtime! plugin/fakeclip.vim
|
||||
call vspec#hint({
|
||||
\ 'scope': 'fakeclip#_local_variables()',
|
||||
\ 'sid': 'fakeclip#_sid_prefix()',
|
||||
\ })
|
||||
function s:describe__commands() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__named_key_mappings() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function s:describe__ui_key_mappings() "{{{1
|
||||
" FIXME
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
" __END__ "{{{1
|
||||
" vim: filetype=vim foldmethod=marker
|
Reference in New Issue
Block a user