Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 23392:517fca70e084 v8.2.2239
patch 8.2.2239: Vim9: concatenating lines with backslash is inconvenient
Commit: https://github.com/vim/vim/commit/dcc58e031ded8b846a39146112b9b075cbb977d9
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 28 20:53:21 2020 +0100
patch 8.2.2239: Vim9: concatenating lines with backslash is inconvenient
Problem: Vim9: concatenating lines with backslash is inconvenient.
Solution: Support concatenating lines starting with '|', useful for
:autocmd, :command, etc. (closes #6702)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 28 Dec 2020 21:00:04 +0100 |
parents | 1371e21fdc3d |
children | 40f824f5c7c7 |
comparison
equal
deleted
inserted
replaced
23391:3366c49544bc | 23392:517fca70e084 |
---|---|
546 assert_equal(1, info[0].changed) | 546 assert_equal(1, info[0].changed) |
547 edit Xsomefile | 547 edit Xsomefile |
548 bwipe! | 548 bwipe! |
549 | 549 |
550 au BufNewFile Xfile g:readFile = 1 | 550 au BufNewFile Xfile g:readFile = 1 |
551 | g:readExtra = 2 | |
551 g:readFile = 0 | 552 g:readFile = 0 |
553 g:readExtra = 0 | |
552 edit Xfile | 554 edit Xfile |
553 assert_equal(1, g:readFile) | 555 assert_equal(1, g:readFile) |
556 assert_equal(2, g:readExtra) | |
554 bwipe! | 557 bwipe! |
555 g:readFile = 0 | 558 g:readFile = 0 |
556 noautocmd edit Xfile | 559 noautocmd edit Xfile |
557 assert_equal(0, g:readFile) | 560 assert_equal(0, g:readFile) |
561 au! BufNewFile | |
562 | |
563 au BufNewFile Xfile g:readFile = 1 | |
564 | g:readExtra = 2 | |
565 | g:readMore = 3 | |
566 g:readFile = 0 | |
567 g:readExtra = 0 | |
568 g:readMore = 0 | |
569 edit Xfile | |
570 assert_equal(1, g:readFile) | |
571 assert_equal(2, g:readExtra) | |
572 assert_equal(3, g:readMore) | |
573 bwipe! | |
574 au! BufNewFile | |
575 unlet g:readFile | |
576 unlet g:readExtra | |
577 unlet g:readMore | |
558 | 578 |
559 noswapfile edit XnoSwap | 579 noswapfile edit XnoSwap |
560 assert_equal(0, &l:swapfile) | 580 assert_equal(0, &l:swapfile) |
561 bwipe! | 581 bwipe! |
562 | 582 |