defaults.vim: Update comment to simplify reverting augroup
Commit:
https://github.com/vim/vim/commit/c41b3c9f95ac57646804977edea496705618cc93
Author: Balki <[email protected]>
Date: Fri Jul 14 16:59:40 2023 +0000
defaults.vim: Update comment to simplify reverting augroup
closes: https://github.com/vim/vim/issues/12673
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 9b4ecfeaf..67659895f 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -97,7 +97,7 @@ if 1
filetype plugin indent on
" Put these in an autocmd group, so that you can revert them with:
- " ":augroup vimStartup | exe 'au!' | augroup END"
+ " ":autocmd! vimStartup"
augroup vimStartup
au!
@@ -115,7 +115,7 @@ 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 | exe 'au!' | augroup END"
+ " ":autocmd! vimHints"
augroup vimHints
au!
autocmd CmdwinEnter *
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qTni5-00C15x-59%40256bit.org.