4
4

More than 5 years have passed since last update.

neosnippet+snipmate-snippetsでFilenameが見つからないエラー

Posted at

最近ちょっと話題になった上記エントリを読んで honza/snipmate-snippets · GitHub を導入したら

E117: Unknown function: Filename
E116: Invalid arguments for function substitute(Filename('', 'Page Title'), '^.', '\u&', '')

というエラーが出た。調べてみると g:neosnippet#enable_snipmate_compatibility を設定すると snipMate 互換の関数が使えるようになるらしい。

snipmate-snippetsという名前からしてこのオプションが必要だったというわけだ。.vimrcに下記を追加したらエラーは無事に消えた。

.vimrc
let g:neosnippet#enable_snipmate_compatibility = 1
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4