view src/testdir/test_options.in @ 7761:db5864658024 v7.4.1178

commit https://github.com/vim/vim/commit/767d8c1a1ae762ecf47297c168b8c23caf05d30a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 25 20:22:54 2016 +0100 patch 7.4.1178 Problem: empty() doesn't work for the new special variables. Solution: Make empty() work. (Damien)
author Christian Brabandt <cb@256bit.org>
date Mon, 25 Jan 2016 20:30:05 +0100
parents 55c67e16e4fd
children
line wrap: on
line source

Test for ":options".

STARTTEST
:so small.vim
:let caught = 'ok'
:try
  :options
:catch 
  :let caught = v:throwpoint . "\n" . v:exception
:endtry
:buf 1
:$put =caught
:"
:" Test that changing 'path' keeps two commas.
:set path=foo,,bar
:set path-=bar
:set path+=bar
:$put =&path
:/^result/,$w! test.out
:qa!
ENDTEST

result