diff src/testdir/test_lispwords.vim @ 7293:979f8a595326 v7.4.952

commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 3 16:54:53 2015 +0100 patch 7.4.952 Problem: 'lispwords' is tested in the old way. Solution: Make a new style test for 'lispwords'.
author Christian Brabandt <cb@256bit.org>
date Thu, 03 Dec 2015 17:00:05 +0100
parents
children 44aa2997239d
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/src/testdir/test_lispwords.vim
@@ -0,0 +1,16 @@
+" Tests for 'lispwords' settings being global-local
+
+set nocompatible viminfo+=nviminfo
+
+func Test_global_local_lispwords()
+  setglobal lispwords=foo,bar,baz
+  setlocal lispwords-=foo | setlocal lispwords+=quux
+  call assert_equal('foo,bar,baz', &g:lispwords)
+  call assert_equal('bar,baz,quux', &l:lispwords)
+  call assert_equal('bar,baz,quux', &lispwords)
+
+  setlocal lispwords<
+  call assert_equal('foo,bar,baz', &g:lispwords)
+  call assert_equal('foo,bar,baz', &l:lispwords)
+  call assert_equal('foo,bar,baz', &lispwords)
+endfunc