diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-21 21:13:36 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-21 21:13:36 +0000 |
commit | 88a4205f1cfbdc328e987ab00521fc8a22447fc3 (patch) | |
tree | f1ea704ca6e43c7d64c7bf6a94452d099cdba060 /runtime/defaults.vim | |
parent | eea32afdb83ae281a63152f7494f79ec7e45ff55 (diff) |
Update runtime files
Diffstat (limited to 'runtime/defaults.vim')
-rw-r--r-- | runtime/defaults.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/defaults.vim b/runtime/defaults.vim index 9b46c8e78a..4a44ebf955 100644 --- 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 |