-
Notifications
You must be signed in to change notification settings - Fork 73
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
refactor for clarity and faster loading #66
Comments
This Puts the functions into an autoload file. Should the Transfer of the filetype detection and plugin file go into a separate issue then ? |
Yes (into a seperate PR). As jamessan mentioned in #52 it will take some more time till #52 will be merged. But I think you can (now or then) build your transfer to the filetype folders on top of the PR #52. That way you don't have to redo the work and jamessan doesn't have to handle the "same" code changes twice. |
I agree with Bram's comment in vim/vim#1077 that there shouldn't be a filetype for this plugin. The autocmds are fine in plugin/. |
Ok. One might consider outsourcing them to ftdetect/.. and leave the filetype unchanged, but that's only to make the plugin/.. file leaner. |
Yeah, I'm not sure it's worth splitting them out. They have to be loaded anyway and plugin/ files are automatically loaded. |
Currently the whole plug-in resides in a single vim file. How about moving all autocmd's of the form
to a
ftdetect/gpg.vim
file that defines agpg
filetype, along with aftplugin/gpg.vim
file?Then the various script functions such as
go into a
autoload/gpg.vim
file and are namedgpg#EditRecipients()
and alike. This loads them only when called for.The text was updated successfully, but these errors were encountered: