Comments (2)
Without preceding filetype plugin indent on
- plug#end()
- Load
ftdetect
au PlugLOD FileType xxx call s:lod_ft('xxx', 'vim-xxx')
- filetype plugin indent on
au filetypedetect BufNewFile,BufRead ...
au filetypeplugin FileType * call s:LoadFTPlugin()
au filetypeindent FileType * call s:LoadIndent()
- Load
- Open xxx
- ftdetect
- PlugLOD
- Add plugin path to &rtp
- Load
plugin
andafter/plugin
- filetypeplugin
- Load
ftplugin
- Load
- filetypeindent
- Load
indent
- Load
All is well.
With preceding filetype plugin indent on
- /etc/vimrc
- filetype plugin indent on
au filetypedetect BufNewFile,BufRead ...
au filetypeplugin FileType * call s:LoadFTPlugin()
au filetypeindent FileType * call s:LoadIndent()
- filetype plugin indent on
- plug#end()
- Load
ftdetect
au PlugLOD FileType xxx call s:lod_ft('xxx', 'vim-xxx')
- filetype plugin indent on
did_load_filetypes
did_load_ftplugin
did_indent_on
- Load
- Open xxx
- ftdetect
- filetypeplugin
- Load
ftplugin
- Load
- filetypeindent
- Load
indent
- Load
- PlugLOD
- Add plugin path to &rtp
- Load
plugin
andafter/plugin
Files under ftplugin
are not loaded as &rtp
is not yet updated.
Removing filetypeplugin autocmd
- /etc/vimrc
- filetype plugin indent on
au filetypedetect BufNewFile,BufRead ...
au filetypeplugin FileType * call s:LoadFTPlugin()
au filetypeindent FileType * call s:LoadIndent()
- filetype plugin indent on
- plug#end()
- Load
ftdetect
au PlugLOD FileType xxx call s:lod_ft('xxx', 'vim-xxx')
au! filetypeplugin *
,unlet did_load_ftplugin
, ...- filetype plugin indent on
did_load_filetypes
au filetypeplugin FileType * call s:LoadFTPlugin()
au filetypeindent FileType * call s:LoadIndent()
- Load
- Open xxx
- ftdetect
- PlugLOD
- Add plugin path to &rtp
- Load
plugin
andafter/plugin
- filetypeplugin
- Load
ftplugin
- Load
- filetypeindent
- Load
indent
- Load
Reissuing autocmds (current solution)
- /etc/vimrc
- filetype plugin indent on
au filetypedetect BufNewFile,BufRead ...
au filetypeplugin FileType * call s:LoadFTPlugin()
au filetypeindent FileType * call s:LoadIndent()
- filetype plugin indent on
- plug#end()
- Load
ftdetect
au PlugLOD FileType xxx call s:lod_ft('xxx', 'vim-xxx')
- filetype plugin indent on
did_load_ftplugin
did_load_filetypes
did_indent_on
- Load
- Open xxx
- ftdetect
- filetypeplugin
- Load
ftplugin
- Load
- filetypeindent
- Load
indent
- Load
- PlugLOD
- Add plugin path to &rtp
- Load
plugin
andafter/plugin
doautocmd filetypeplugin FileType
- Load
ftplugin
- Load
doautocmd filetypeindent FileType
- Load
indent
- Load
from vim-plug.
There were some errors in the description.
Due to the commit 7f1ec7b, autocmd
appearing before plug#end()
will be invoked before ftplugin
. This behavior is consistent regardless of whether filetype plugin indent on
is called before plug#end()
or not. So if you want to override ftplugin
defaults, make sure to put autocmd
after plug#end()
call.
- With
filetype plugin indent on
beforeplug#end()
- ftplugin (by s:lod_ft)
- vimrc autocmd
- Without
filetype plugin indent on
beforeplug#end()
- ftplugin
- ftplugin (by s:lod_ft, redundant)
- vimrc autocmd
Most ftplugins have b:did_ftplugin
guard, so loading it again should be fine. 😐
from vim-plug.
Related Issues (20)
- Vim plug and lua plugins: calling setup & config functions HOT 1
- PlugClean fails to recover when remote renamed default branch HOT 2
- How to pass configuration options (opts) to plugins? HOT 1
- PlugUpdate revert HOT 1
- (Re)load *.lua in addition to *.vim HOT 3
- Lua support? HOT 2
- Vin Plug installation problem in windows OS
- Manage the configs for each vim-plugged plugin in a separate file.
- On demand loading with user defined commands? HOT 2
- error message on opening .vimrc HOT 1
- Installation fails(?) on neovim 0.9.5 on Macos HOT 3
- Improve for https://github.com/junegunn/vim-plug/wiki/tips#automatic-installation-of-missing-plugins HOT 1
- Running multiple commands in after update hook HOT 2
- Add a command to return vim-plug version HOT 1
- Make automatic installation script in wiki tips compatible with Neovim HOT 8
- I think vim-plug is a very excellent Vim plug-in management tool.The codigger project has many plug-ins that extend Vim.
- Mistyping a plugin name gives a cryptic error HOT 2
- plug.vim and init.lua loading issue? HOT 1
- fugitive compatibility for viewing commits in PlugDiff HOT 2
- Allow pull with --force HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-plug.