mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:30:07 +08:00
14 lines
582 B
VimL
14 lines
582 B
VimL
|
|
function! s:test_parse_substitute()
|
|
let owl_SID = owl#filename_to_SID("vim-over/autoload/over.vim")
|
|
|
|
OwlCheck s:parse_substitute('/homu') == []
|
|
OwlCheck s:parse_substitute('s/homu') == ["", "homu", "", ""]
|
|
OwlCheck s:parse_substitute('%s/homu') == ["%", "homu", "", ""]
|
|
OwlCheck s:parse_substitute("'<,'>s/homu") == ["'<,'>", "homu", "", ""]
|
|
OwlCheck s:parse_substitute("'<,'>s/homu/mami") == ["'<,'>", "homu", "mami", ""]
|
|
OwlCheck s:parse_substitute('''<,''>s/ho\/ou/ma\/mi') == ["'<,'>", 'ho\/ou', 'ma\/mi', ""]
|
|
OwlCheck s:parse_substitute('%sa/a//g') == []
|
|
endfunction
|
|
|