garbas / vim-snipmate

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.
www.vim.org/scripts/script.php?script_id=2540
2.01k stars 181 forks source link

Snippet "pas.snippets" not work! #274

Closed ivanalaman closed 4 years ago

ivanalaman commented 4 years ago

Dears,

I created a file "pas.snippets" to work with file.pas, however, this snippet not work. Other snippets as R, Rnw, Html, work normally.

Any suggestion?

ajzafar commented 4 years ago

@ivanalaman Can you go through the steps outlined in the FAQ? Thank you!

ivanalaman commented 4 years ago

My operating system is debian buster. I'm using the vim editor version 8.1.1401. I installed the referred plugin, and created a snipett in the ./vim/plugged/vim-snippets/snippets/pas.snippets folder with the following code:

snippet begin              begin              $ {0}              end. snippet writeln              writeln ($ {0});

When I open my hello.pas file and try to fire the command as a begin + tab trigger nothing happens.

Do you need any more information?

ivanalaman commented 4 years ago

I found the solution in topic "Not detecting .eex files in order to associate with eelixir snippets #261." Putting it ":se filetype" I found that the correct snippet would be "freepascal.snippets". Thank you!