view src/testdir/test_erasebackword.vim @ 22918:f83e31419f6e v8.2.2006

patch 8.2.2006: .pbtxt files are not recognized Commit: https://github.com/vim/vim/commit/88774a30c0b1957a6177cdb69d2becedae610299 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 18 12:12:39 2020 +0100 patch 8.2.2006: .pbtxt files are not recognized Problem: .pbtxt files are not recognized. Solution: Recognize .pbtxt as protobuf text buffers. (closes https://github.com/vim/vim/issues/7326)
author Bram Moolenaar <Bram@vim.org>
date Wed, 18 Nov 2020 12:15:04 +0100
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