Skip to main content

Timeline for How to check if value is v:null?

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Dec 18, 2021 at 20:53 history edited Dom
edited tags
Dec 16, 2021 at 16:32 comment added D. Ben Knoble I almost always write is# even when it's not needed, and almost never write ==. Then I have less thinking to do, and I don't get weird conversions I don't want (strings and numbers). This is likely because Martin persuaded me with the article linked in the answer.
Dec 16, 2021 at 12:27 vote accept TamaMcGlinn
Dec 16, 2021 at 12:05 answer added Biggybi timeline score: 3
Dec 16, 2021 at 11:47 comment added Biggybi Actually, there's also isnot. I'm writing an answer.
Dec 16, 2021 at 11:25 comment added TamaMcGlinn Correct, thank you. It would be great to specify in the answer also how to test 'is not' - it is a bit counterintuitive echom !(l:v is v:null)
Dec 16, 2021 at 11:19 comment added Biggybi I would try is instead of == (can't test rn).
Dec 16, 2021 at 11:10 history asked TamaMcGlinn CC BY-SA 4.0