Mercurial > vim
view src/testdir/test_set.vim @ 19108:44c6498535c9 v8.2.0114
patch 8.2.0114: info about sourced scripts is scattered
Commit: https://github.com/vim/vim/commit/7ebcba61b20d25d23109fff73d0346ad44ba1b3b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 12 17:42:55 2020 +0100
patch 8.2.0114: info about sourced scripts is scattered
Problem: Info about sourced scripts is scattered.
Solution: Use scriptitem_T for info about a script, including s: variables.
Drop ga_scripts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Jan 2020 17:45:03 +0100 |
parents | 779a7c14c795 |
children | 08940efa6b4e |
line wrap: on
line source
" Tests for the :set command function Test_set_backslash() let isk_save = &isk set isk=a,b,c set isk+=d call assert_equal('a,b,c,d', &isk) set isk+=\\,e call assert_equal('a,b,c,d,\,e', &isk) set isk-=e call assert_equal('a,b,c,d,\', &isk) set isk-=\\ call assert_equal('a,b,c,d', &isk) let &isk = isk_save endfunction function Test_set_add() let wig_save = &wig set wildignore=*.png, set wildignore+=*.jpg call assert_equal('*.png,*.jpg', &wig) let &wig = wig_save endfunction