Mercurial > vim
view src/testdir/test_erasebackword.vim @ 32515:d1794b2317b8 v9.0.1589
patch 9.0.1589: filetype test contains too many special characters
Commit: https://github.com/vim/vim/commit/b140c114f641ac4cd4fb04e7bdec031295264a8d
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 29 17:06:05 2023 +0100
patch 9.0.1589: filetype test contains too many special characters
Problem: Filetype test contains too many special characters.
Solution: Use Vim9 syntax for a few things.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 May 2023 18:15:03 +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