I'm programming Bash scripts using Vim in Ubuntu 16.04 (on Windows Subsystem for Linux).
The filename ends in .sh
and the first line of the file is
#!/bin/bash
When I wrote this command
rm -rf /tmp/*
~~~
The "word" -rf
is shown in red (I use underlying tildes to point it out). I guess it's because Vim detected that -rm
is a dangerous option when supplied to rm
.
Later I wrote this:
tmpDir=$(mktemp "tmp-XXXXXX")
~~~~~~
and Vim confusingly marked mktemp
as red.
Why is that? Can I stop Vim from marking this very word as red?