mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
Autocmds: executed in the order they were defined
This commit is contained in:
parent
d56ff59da9
commit
43479f3974
@ -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
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user