Autocmds: executed in the order they were defined

This commit is contained in:
Marco Hinz 2016-01-13 19:49:43 +01:00
parent d56ff59da9
commit 43479f3974

View File

@ -522,6 +522,9 @@ If you're brave enough, have a look at it: `:e $VIMRUNTIME/filetype.vim`. Search
for "Ruby" and you'll find that Vim simply uses the file extension `.rb` to for "Ruby" and you'll find that Vim simply uses the file extension `.rb` to
detect Ruby files: detect Ruby files:
**NOTE**: Autocmds of the same event are executed in the order they were
created. `:au` shows them in the correct order.
```viml ```viml
au BufNewFile,BufRead *.rb,*.rbw setf ruby au BufNewFile,BufRead *.rb,*.rbw setf ruby
``` ```