In this how to will I show you how to solve the problem with "Invalid YAML at //etc/netplan/01-netcfg.yaml line 25 column 0: found character that can not start any token". Which is one of the more common problems in Ubunt 18.04 network configuration.
Commands used in this how to are.
sudo netplan apply
sudo netplan --debug apply
ip addr
The editor I use is emacs. It also works well with nano.