view src/testdir/test_autoformat_join.in @ 10791:bfd636b8e259 v8.0.0285

patch 8.0.0285: tests fail with tiny build on Unix commit https://github.com/vim/vim/commit/c386267ffe1eb7ddf11794ade4f97d8b6b534588 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 18:07:38 2017 +0100 patch 8.0.0285: tests fail with tiny build on Unix Problem: Tests fail with tiny build on Unix. Solution: Only set g:tester_HOME when build with the +eval feature.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Feb 2017 18:15:04 +0100
parents bc269cf15ccd
children
line wrap: on
line source

Tests for setting the '[,'] marks when joining lines.

STARTTEST
:so small.vim
:/^\t\t/
0gqj:
:let a=string(getpos("'[")).'/'.string(getpos("']"))
:/^This line/;'}-join
:let b=string(getpos("'[")).'/'.string(getpos("']"))
:$put ='First test: Start/End '.string(a)
:$put ='Second test: Start/End '.string(b)
:/^\t\t/,$wq! test.out
ENDTEST


		O sodales, ludite, vos qui
attamen consulite per voster honur. Tua pulchra facies me fay planszer milies

This line.
Should be joined with the next line
and with this line

Results: