Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overrides user FileType autocommands #452

Closed
blueyed opened this issue Nov 17, 2015 · 3 comments
Closed

Overrides user FileType autocommands #452

blueyed opened this issue Nov 17, 2015 · 3 comments

Comments

@blueyed
Copy link
Contributor

blueyed commented Nov 17, 2015

It seems that with Neobundle, the ftplugins are applied after any user au FileType, while you can influence the order in a minimal vimrc file, by configuring the autocommands before or after the filetype plugin indent on.

The doc is also unclear/wrong about how to use it with neobundle: https://github.com/Shougo/neobundle.vim/blob/master/doc/neobundle.txt#L1757-L1766.

au FileType python echom "CUSTOM" is always before the ftplugin.

@blueyed
Copy link
Contributor Author

blueyed commented Nov 17, 2015

This happens because of s:reset_ftplugin being called.

@blueyed
Copy link
Contributor Author

blueyed commented Nov 17, 2015

Maybe reset_ftplugin should take care to keep the order of FileType autocommands?

@Shougo Shougo closed this as completed in 7a7022e Nov 17, 2015
@Shougo
Copy link
Owner

Shougo commented Nov 17, 2015

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants