view src/testdir/test22.in @ 31859:8b15e4161605 v9.0.1262

patch 9.0.1262: the did_set_string_option function is too long Commit: https://github.com/vim/vim/commit/f2e30d0c448b9754d0d4daa901b51fbbf4c30747 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Jan 30 13:04:42 2023 +0000 patch 9.0.1262: the did_set_string_option function is too long Problem: The did_set_string_option function is too long. Solution: Split off functionality to individual functions. (Yegappan Lakshmanan, Lewis Russell, closes #11904)
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Jan 2023 14:15:05 +0100
parents 30bdd2e4a6f9
children
line wrap: on
line source

Tests for complicated + argument to :edit command

STARTTEST
:$-1w! Xfile1
:$w! Xfile2
:edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w
:w! test.out
:e Xfile1
:w >> test.out
:qa!
ENDTEST

The result should be in Xfile1: "fooPIPEbar", in Xfile2: "fooSLASHbar"
foo|bar
foo/bar