Mercurial > vim
comparison src/testdir/test_vim9_script.vim @ 23978:54b2aa1f0d42 v8.2.2531
patch 8.2.2531: Vim9: the :k command is obscure
Commit: https://github.com/vim/vim/commit/10b9421f3bb7ac971fa63bd025c4c603c98f4a49
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 19 21:42:57 2021 +0100
patch 8.2.2531: Vim9: the :k command is obscure
Problem: Vim9: the :k command is obscure.
Solution: Disallow using :k, can use :mark instead. (closes https://github.com/vim/vim/issues/7874)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 19 Feb 2021 21:45:03 +0100 |
parents | d4f7e4138544 |
children | bee8c78c0c6a |
comparison
equal
deleted
inserted
replaced
23977:182c7ecd2cf3 | 23978:54b2aa1f0d42 |
---|---|
3489 delete('XexportScript.vim') | 3489 delete('XexportScript.vim') |
3490 delete('XscriptImport.vim') | 3490 delete('XscriptImport.vim') |
3491 unlet g:guard | 3491 unlet g:guard |
3492 enddef | 3492 enddef |
3493 | 3493 |
3494 def Test_unsupported_commands() | |
3495 var lines =<< trim END | |
3496 ka | |
3497 END | |
3498 CheckDefAndScriptFailure(lines, 'E1100:') | |
3499 | |
3500 lines =<< trim END | |
3501 t | |
3502 END | |
3503 CheckDefFailure(lines, 'E1100:') | |
3504 CheckScriptFailure(['vim9script'] + lines, 'E1100:') | |
3505 | |
3506 lines =<< trim END | |
3507 x | |
3508 END | |
3509 CheckDefFailure(lines, 'E1100:') | |
3510 CheckScriptFailure(['vim9script'] + lines, 'E1100:') | |
3511 | |
3512 lines =<< trim END | |
3513 xit | |
3514 END | |
3515 CheckDefFailure(lines, 'E1100:') | |
3516 CheckScriptFailure(['vim9script'] + lines, 'E1100:') | |
3517 enddef | |
3518 | |
3494 " Keep this last, it messes up highlighting. | 3519 " Keep this last, it messes up highlighting. |
3495 def Test_substitute_cmd() | 3520 def Test_substitute_cmd() |
3496 new | 3521 new |
3497 setline(1, 'something') | 3522 setline(1, 'something') |
3498 :substitute(some(other( | 3523 :substitute(some(other( |