Skip to content

Unable to get example template 'skeleton' to work #100

Description

@ModernTrollfare

Issue: Snippet generated by 'skeleton' is not loaded by xptemplate after a :XPTreload.

Steps taken:

  1. 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.
  1. Following the above instructions, Save the file to ~/.vim/ftplugin/c/hello.xpt.vim.
  2. Run :XPTreload.
  3. 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions