I can't for the life of me find an answer to this either on google or here or in the help files.
if "test.c" =~ "\.c"
At first I thought =~
mean ends in, but observe these results:
Command Result
echo "test.c" =~ "\.c" 1
echo "test.c" =~ "\.pc" 0
echo "test.pc" =~ "\.c" 1
echo "testc" =~ "\.c" 1
echo "ctest" =~ "\.c" 1
echo "ctestp" =~ "\.pc" 0
echo "pctestp" =~ "\.pc" 0
echo ".pctestp" =~ "\.pc" 0
An explanation would be great. A link to a site attempting to decipher VimScript would be even better.