I put the SyntaxAttr.vim file in the ~/.vim/autoload folder.
I want to use autocmd command to set the autoload event.
How should I do it.
Autoload the SyntaxAttr.vim.
I put the SyntaxAttr.vim file in the ~/.vim/autoload folder.
I want to use autocmd command to set the autoload event.
How should I do it.
Autoload the SyntaxAttr.vim.
Copyright © 2021 Jogjafile Inc.
Assuming this is the
SyntaxAttr.vimin question, the author of that script seems to be a little confused about the meaning of the word "autoloading" in the Vim context and about the purpose of theautoloaddirectory (or "autoloading" didn't exist in its current form back in 2002).For background, how so-called "autoloading" works in Vim is introduced in section 52 of the user manual,
:help 52.2and further explained under:help autoload.Now, you basically have two options:…
Keep the file in
autoload/but edit it and use it as described in the help sections above:Or move the file to where it belongs,
plugin/, and forget all about that weird notion of "autoloading":