view src/testdir/test10.in @ 30687:f936d46cc9c1 v9.0.0678

patch 9.0.0678: using exclamation marks on :function Commit: https://github.com/vim/vim/commit/97f0eb169bf805c372b13c6bc9a03da2e75e3354 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 6 19:49:13 2022 +0100 patch 9.0.0678: using exclamation marks on :function Problem: Using exclamation marks on :function. Solution: Use :func and :endfunc as usual.
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 Oct 2022 21:00:04 +0200
parents 9d7914012b82
children
line wrap: on
line source

Test that vim9script also works without the +eval feature.

STARTTEST
:/^START/+1,/^END/-1:w! Xvim9
:so Xvim9
ENDTEST

START
vim9script

if 1
  echo 'this is skipped without +eval'
endif

# colon required for a range
:$-1,$w! test.out
qa!
END

first line
last line