Vim functions documentation

22 views
Skip to first unread message

Julius Hamilton

unread,
Sep 10, 2021, 4:50:43 AM9/10/21
to v...@vim.org
Hey,

I would like to write a command or function in Vim which will return True or False based on some properties of the text in the file. I assume this will be done with the Vim Script language (http://vimdoc.sourceforge.net/htmldoc/usr_41.html).

I thought that sections of the User Manual usually corresponded to a more definitive, in-depth chapter in the Reference Manual, but I see no discussion of a corresponding reference manual section here.

Is there a reference manual chapter on functions and vim script?

Thank you,
Julius

Bram Moolenaar

unread,
Sep 10, 2021, 6:44:19 AM9/10/21
to vim...@googlegroups.com, Julius Hamilton, v...@vim.org
How about :help user-functions

I'll add a reference at the end of 41.7.

--
hundred-and-one symptoms of being an internet addict:
22. You've already visited all the links at Yahoo and you're halfway through
Lycos.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

David Lowry-Duda

unread,
Sep 10, 2021, 7:44:16 AM9/10/21
to vim...@googlegroups.com
> Is there a reference manual chapter on functions and vim script?

See :h usr_41, to a certain extent :h usr_40, and :h eval (particularly
section 4 on builtin functions and section 5 on defining functions).

- DLD
Reply all
Reply to author
Forward
0 new messages