diff options
Diffstat (limited to 'runtime/defaults.vim')
-rw-r--r-- | runtime/defaults.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/defaults.vim b/runtime/defaults.vim index f3c639bc7..9b46c8e78 100644 --- a/runtime/defaults.vim +++ b/runtime/defaults.vim @@ -111,6 +111,17 @@ if 1 augroup END + " 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 + autocmd! CmdwinEnter * + \ echohl Todo | + \ echo 'You discovered the command-line window! You can close it with ":q".' | + \ echohl None + augroup END + endif " Switch syntax highlighting on when the terminal has colors or when using the |