mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
20 lines
840 B
VimL
20 lines
840 B
VimL
|
|
||
|
func Test_erasebackword()
|
||
|
enew
|
||
|
|
||
|
exe "normal o wwwこんにちわ世界ワールドvim \<C-W>"
|
||
|
call assert_equal(' wwwこんにちわ世界ワールド', getline('.'))
|
||
|
exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>"
|
||
|
call assert_equal(' wwwこんにちわ世界', getline('.'))
|
||
|
exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>"
|
||
|
call assert_equal(' wwwこんにちわ', getline('.'))
|
||
|
exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>"
|
||
|
call assert_equal(' www', getline('.'))
|
||
|
exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>"
|
||
|
call assert_equal(' ', getline('.'))
|
||
|
exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>\<C-W>"
|
||
|
call assert_equal('', getline('.'))
|
||
|
|
||
|
enew!
|
||
|
endfunc
|