summaryrefslogtreecommitdiffstats
path: root/runtime/defaults.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/defaults.vim')
-rw-r--r--runtime/defaults.vim9
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