Commit Graph

8 Commits

Author SHA1 Message Date
Holger Rapp
4eac979888 Disable auto detecting changes to snippet files on expansion (#967)
Instead, trigger an auto command whenever a .snippets file is saved that will reload the snippets. This is a performance improvement with a loss of functionality: externally (i.e. outside of the current Vim instance) generated snippet files will not be picked up until UltiSnips#RefreshSnippets is called.

I decided to not expose a command for this, since I assume it is rarely useful. I think the command would add confusion of when it was supposed to be ran.

Fixes #932.
2018-04-11 00:52:48 +02:00
Kevin Ballard
a69764dff6 Tweak the ftplugin
Update the ftplugin to behave better. This means use b:did_ftplugin,
toggle cpo as appropriate, and define a b:undo_ftplugin.
2014-08-26 01:03:15 -07:00
Kevin Ballard
dee8265206 Support TagBar for snippets files
Bundle an exuberant ctags definition for UltiSnips and tell TagBar how
to find it.
2014-07-05 19:36:38 -07:00
Kevin Ballard
b10b62ae6d Twiddle indentation settings
We just want autoindent, no need for smartindent/etc that may be set by
the user's vimrc.
2014-06-30 21:17:52 -07:00
Holger Rapp
38de6a8821 do not expand tabs in snippet files. 2013-06-10 18:34:38 +02:00
Mike Morearty
c8d1971c4b Set comment string to #%s
This allows the TPope's vim-commentary plugin to work with .snippet
files; e.g. typing "\\\" will comment out the current line with "# ".
2013-01-26 08:29:37 -08:00
Aaron Schrab
5f6d281687 Matchit support for snippet files
If the matchit (http://www.vim.org/scripts/script.php?script_id=39)
plugin is loaded, define pairs to be handled by the % key.
2012-08-21 12:47:20 +02:00
Holger Rapp
6324ff1435 Added a ftplugin file for .snippets file and set some sane defaults for folding 2011-03-27 08:09:12 +02:00