Mercurial > vim
diff runtime/defaults.vim @ 26219:786b2a8ec970
Update runtime files
Commit: https://github.com/vim/vim/commit/88a4205f1cfbdc328e987ab00521fc8a22447fc3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 21 21:13:36 2021 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Nov 2021 22:15:05 +0100 |
parents | 44fe7d15881d |
children | c968191a8557 |
line wrap: on
line diff
--- a/runtime/defaults.vim +++ b/runtime/defaults.vim @@ -1,7 +1,7 @@ " The default vimrc file. " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last change: 2020 Sep 30 +" Last change: 2021 Nov 17 " " This is loaded if no vimrc file was found. " Except when Vim is run with "-u NONE" or "-C". @@ -96,7 +96,7 @@ if 1 filetype plugin indent on " Put these in an autocmd group, so that you can revert them with: - " ":augroup vimStartup | au! | augroup END" + " ":augroup vimStartup | exe 'au!' | augroup END" augroup vimStartup au! @@ -114,9 +114,10 @@ if 1 " Quite a few people accidentally type "q:" instead of ":q" and get confused " by the command line window. Give a hint about how to get out. " If you don't like this you can put this in your vimrc: - " ":augroup vimHints | au! | augroup END" + " ":augroup vimHints | exe 'au!' | augroup END" augroup vimHints - autocmd! CmdwinEnter * + au! + autocmd CmdwinEnter * \ echohl Todo | \ echo 'You discovered the command-line window! You can close it with ":q".' | \ echohl None