]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
defaults.vim: Update comment to simplify reverting augroup
authorBalki <git.user@balki.me>
Fri, 14 Jul 2023 16:59:40 +0000 (16:59 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 9 Aug 2023 18:07:26 +0000 (20:07 +0200)
closes: #12673

runtime/defaults.vim

index 9b4ecfeafa0db3e73eeed8ee2c23a41af3c6788b..67659895f20693676fe0308ee279cddaf270c0ef 100644 (file)
@@ -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 *