Mercurial > vim
diff runtime/doc/autocmd.txt @ 6951:b2673982c625
Updated and new runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 Jul 2015 19:19:13 +0200 |
parents | 4db70c94226b |
children | 349e6c01f35d |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 7.4. Last change: 2015 Jul 10 +*autocmd.txt* For Vim version 7.4. Last change: 2015 Jul 20 VIM REFERENCE MANUAL by Bram Moolenaar @@ -758,13 +758,15 @@ OptionSet After setting an option. Th Is not triggered on startup and for the 'key' option for obvious reasons. - Note: It's a bad idea, to reset an option - during this autocommand, since this will - probably break plugins. You can always use - |noa| to prevent triggering this autocommand. - Could be used, to check for existence of the - 'backupdir' and 'undodir' options and create - directories, if they don't exist yet. + Usage example: Check for the existence of the + directory in the 'backupdir' and 'undodir' + options, create the directory if it doesn't + exist yet. + + Note: It's a bad idea to reset an option + during this autocommand, this may break a + plugin. You can always use `:noa` to prevent + triggering this autocommand. *QuickFixCmdPre* QuickFixCmdPre Before a quickfix command is run (|:make|,