Mercurial > vim
comparison runtime/defaults.vim @ 26219:786b2a8ec970
Update runtime files
Commit: https://github.com/vim/vim/commit/88a4205f1cfbdc328e987ab00521fc8a22447fc3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 21 21:13:36 2021 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Nov 2021 22:15:05 +0100 |
parents | 44fe7d15881d |
children | c968191a8557 |
comparison
equal
deleted
inserted
replaced
26218:5bf41f09e0e1 | 26219:786b2a8ec970 |
---|---|
1 " The default vimrc file. | 1 " The default vimrc file. |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last change: 2020 Sep 30 | 4 " Last change: 2021 Nov 17 |
5 " | 5 " |
6 " This is loaded if no vimrc file was found. | 6 " This is loaded if no vimrc file was found. |
7 " Except when Vim is run with "-u NONE" or "-C". | 7 " Except when Vim is run with "-u NONE" or "-C". |
8 " Individual settings can be reverted with ":set option&". | 8 " Individual settings can be reverted with ":set option&". |
9 " Other commands can be reverted as mentioned below. | 9 " Other commands can be reverted as mentioned below. |
94 " Also load indent files, to automatically do language-dependent indenting. | 94 " Also load indent files, to automatically do language-dependent indenting. |
95 " Revert with ":filetype off". | 95 " Revert with ":filetype off". |
96 filetype plugin indent on | 96 filetype plugin indent on |
97 | 97 |
98 " Put these in an autocmd group, so that you can revert them with: | 98 " Put these in an autocmd group, so that you can revert them with: |
99 " ":augroup vimStartup | au! | augroup END" | 99 " ":augroup vimStartup | exe 'au!' | augroup END" |
100 augroup vimStartup | 100 augroup vimStartup |
101 au! | 101 au! |
102 | 102 |
103 " When editing a file, always jump to the last known cursor position. | 103 " When editing a file, always jump to the last known cursor position. |
104 " Don't do it when the position is invalid, when inside an event handler | 104 " Don't do it when the position is invalid, when inside an event handler |
112 augroup END | 112 augroup END |
113 | 113 |
114 " Quite a few people accidentally type "q:" instead of ":q" and get confused | 114 " Quite a few people accidentally type "q:" instead of ":q" and get confused |
115 " by the command line window. Give a hint about how to get out. | 115 " by the command line window. Give a hint about how to get out. |
116 " If you don't like this you can put this in your vimrc: | 116 " If you don't like this you can put this in your vimrc: |
117 " ":augroup vimHints | au! | augroup END" | 117 " ":augroup vimHints | exe 'au!' | augroup END" |
118 augroup vimHints | 118 augroup vimHints |
119 autocmd! CmdwinEnter * | 119 au! |
120 autocmd CmdwinEnter * | |
120 \ echohl Todo | | 121 \ echohl Todo | |
121 \ echo 'You discovered the command-line window! You can close it with ":q".' | | 122 \ echo 'You discovered the command-line window! You can close it with ":q".' | |
122 \ echohl None | 123 \ echohl None |
123 augroup END | 124 augroup END |
124 | 125 |