Vim: How do I check if a function is defined?

From FVue
Jump to: navigation, search

Problem

I've written a script used the builtin function repeat(). But the repeat() function is introduced in Vim 7.0 and not available in Vim 6.0. How do I check within my script if the repeat() function is available?

Solution

exists()

Journal

20061126

Vim FAQ

:help function-list

Comments

blog comments powered by Disqus