Browse Source

Initial commit

master
jimi 15 years ago
commit
a6025da61e
  1. 25
      Readme.txt
  2. 15
      ftplugin/_common/personal_example.xpt.vim

25
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:

15
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