commit a6025da61e71ef92fa8c9fdf4a07d394d63fe938 Author: jimi Date: Tue Jul 13 13:41:47 2010 -0500 Initial commit diff --git a/Readme.txt b/Readme.txt new file mode 100644 index 0000000..5ede980 --- /dev/null +++ b/Readme.txt @@ -0,0 +1,25 @@ + +This is the folder where you add your personal snippets. + +This fold is one of 'runtimepath'. You can imagine this is another ~/.vim +folder( in Unix ) or ~/vimfiles( in windows ). + +============================================================================== + +To add your own snippets, just create a snippet file like what XPT does. For +example to create a C language snippet you need to create: > + personal/ftplugin/c/some_name.xpt.vim +< And then add snippets in this file. +See |xpt-snippet-syntax| |xpt-write-snippet| and |xpt-snippet-tutorial|. + +NOTE: personal snippets in this file should have high priority which is set +with |xpt-snippet-priority|, for example the "personal" priority: > + XPTemplate priority=personal +< This is the highest priority thus no other snippets overrides yours. See +|xpt-snippet-priority| + + +You can also create snippets in some other folders and specify them as snippet +folder with |g:xptemplate_snippet_folders| + +" vim:tw=78:ts=8:sw=8:sts=8:noet:ft=help:norl:spell: diff --git a/ftplugin/_common/personal_example.xpt.vim b/ftplugin/_common/personal_example.xpt.vim new file mode 100644 index 0000000..adbab62 --- /dev/null +++ b/ftplugin/_common/personal_example.xpt.vim @@ -0,0 +1,15 @@ +" Move me to your own fptlugin/_common and config your personal information. +" +" Here is the place to set personal preferences; "priority=personal" is the +" highest which overrides any other XPTvar setting. +" +" You can also set personal variables with 'g:xptemplate_vars' in your .vimrc. +XPTemplate priority=personal + + +" XPTvar $author you have not yet set $author variable +" XPTvar $email you have not yet set $email variable + +XPT yoursnippet " tips here +bla bla +