Thursday, July 19, 2018

Re: write as an expression?

On 2018-07-19 10:08, Bee wrote:
> When to use ' or " ?

In some contexts (that I don't have memorized) a double-quote is
treated as the start of a comment.

:help :quote

Also, double-quote strings can get special sequences replaced in them
while single-quote strings don't:

:help expr-quote
:help literal-string

I tend to use the single-quote for all strings in Vim unless I have
need for the specific replacement functionality that double-quotes
provide.

-tim



--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: