view src/testdir/test_erasebackword.vim @ 32586:304341915488 v9.0.1625

patch 9.0.1625: "super" is not considered a reserved name Commit: https://github.com/vim/vim/commit/ce723f391844695a07d9af02ef60330afd3e158c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 10 19:00:12 2023 +0100 patch 9.0.1625: "super" is not considered a reserved name Problem: "super" is not considered a reserved name. Solution: Add "super" to the list of reserved names. (closes https://github.com/vim/vim/issues/12515)
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Jun 2023 20:15:04 +0200
parents 08940efa6b4e
children
line wrap: on
line source

" Test for i_CTRL-W

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

" vim: shiftwidth=2 sts=2 expandtab