view src/testdir/test_eval.in @ 5796:f084024c0ddb v7.4.242

updated for version 7.4.242 Problem: getreg() does not distinguish between a NL used for a line break and a NL used for a NUL character. Solution: Add another argument to return a list. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Wed, 02 Apr 2014 19:55:10 +0200
parents
children 9f8fa56f1906
line wrap: on
line source

Test for various eval features.

STARTTEST
:so small.vim
:"
:" test getreg()
/^one
"ay3j:$put =string(getreg('a'))
:$put =string(getreg('a', 1, 1))
:"
:/^result/,$w! test.out
:qa!
ENDTEST

one
two
three
four
five

result