forked from msanders/snipmate.vim
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a function collecting snippets on demand. .snippets files are parsed only once and cached for performance reasons. However if the timestamp changes they are reread automatically. I tried to preserve behaviour. However I may have failed. The main reason for this is that it is possible now to define new script sources easily. Eg there could be a plugin which reads Eclipse plugins, translating them to snipMate snippets on the fly etc. This patch adds a dependency on my vim-addon-mw-utils package. Therefor installation is more difficult unless you use vim-addon-manager Send bug reports about this change to marco-oweber@gmx.de
- Loading branch information
Showing
4 changed files
with
154 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name" : "snipMate", | ||
"author" : "Michael Sanders -> original project http://github.com/msanders/snipmate.vim", | ||
"maintainer" : "Marc Weber <marco-oweber@gmx.de> (I mantain this fork only)", | ||
"repository" : {"type": "git", "url": "git://github.com/MarcWeber/snipMate.vim.git"}, | ||
"dependencies" : { | ||
"vim-addon-mw-utils": {} | ||
}, | ||
"description" : "TextMate-style snippets for Vim - this fork loads snippets on demand lazily thus no need to reload any snippets ever" | ||
} |
not all snippets are lazily loaded