Issue: Snippet generated by 'skeleton' is not loaded by xptemplate after a :XPTreload.
Steps taken:
Write a new file using template skeleton.
" Save this file as ~/.vim/ftplugin/c/hello.xpt.vim(or
" ~/vimfiles/ftplugin/c/hello.xpt.vim).
" Then you can use it in C language file:
" vim xpt.c
" And type:
" helloxpt<C-\>
"
XPT helloxpt " tips about what this snippet do
Say hello to `xpt^.
`xpt^ says hello.
Following the above instructions, Save the file to ~/.vim/ftplugin/c/hello.xpt.vim.
Run :XPTreload.
in a .h file, type helloxpt then press <C->.
Expected results:
Observe template 'helloxpt' being generated.
Outcome:
Observe helloxpt\^ in the .h file.
Alternative steps taken:
Place the file in an alternative path present in runtimepath; e.g.:
/path/in/runtimepath/ftplugin/c/hello.xpt.vim
Outcome:
Again, no template is being generated.
At the time of failure, I have used Date<C-\> as a sanity test and the date is shown as expected.
Can advise if there's anything wrong with the above steps, or is there a bug somewhere?
Issue: Snippet generated by 'skeleton' is not loaded by xptemplate after a :XPTreload.
Steps taken:
~/.vim/ftplugin/c/hello.xpt.vim
.:XPTreload
.helloxpt
then press <C->.Expected results: Observe template 'helloxpt' being generated.
Outcome: Observe
helloxpt\^
in the .h file.Alternative steps taken: Place the file in an alternative path present in runtimepath; e.g.:
/path/in/runtimepath/ftplugin/c/hello.xpt.vim
Outcome: Again, no template is being generated.
At the time of failure, I have used
Date<C-\>
as a sanity test and the date is shown as expected.Can advise if there's anything wrong with the above steps, or is there a bug somewhere?