Using . (dot) as the heredoc end marker for let assignments

14 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Apr 14, 2020, 4:49:43 PM4/14/20
to vim_dev
Hi all,

Currently when using a heredoc with the :let statement, you have to
specify an explicit marker both at the beginning and at the end of the
statement. But when using the heredoc with embedded 
scripts (e.g. python), you don't need to specify an explicit marker at the
beginning and you can use . (dot) as the marker at the end. This is
similar to the ":insert" and :append" commands.

Should we also support using . (dot) as the marker at the end for
:let statements?

Thanks,
Yegappan

Bram Moolenaar

unread,
Apr 15, 2020, 3:06:11 PM4/15/20
to vim...@googlegroups.com, Yegappan Lakshmanan
I rather not, it's a bad habit and easily leads to mistakes.

--
DENNIS: You can't expect to wield supreme executive power just 'cause some
watery tart threw a sword at you!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages