Mercurial > vim
view src/testdir/test_writefile.in @ 9667:c27052511998 v7.4.2110
commit https://github.com/vim/vim/commit/eac784eced501c54d2c99e18a1af96cd996f3a6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 28 22:08:24 2016 +0200
patch 7.4.2110
Problem: When there is an CmdUndefined autocmd then the error for a missing
command is E464 instead of E492. (Manuel Ortega)
Solution: Don't let the pointer be NULL.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 28 Jul 2016 22:15:06 +0200 |
parents | 26bb1a6abe25 |
children |
line wrap: on
line source
Tests for writefile() STARTTEST :source small.vim :%delete _ :let f = tempname() :call writefile(["over","written"], f, "b") :call writefile(["hello","world"], f, "b") :call writefile(["!", "good"], f, "a") :call writefile(["morning"], f, "ab") :call writefile(["", "vimmers"], f, "ab") :bwipeout! :$put =readfile(f) :1 delete _ :w! test.out :call delete(f) :qa! ENDTEST