if g:roku_ip is set to a hostname defined in the local hosts file (e.g. rokutv), /etc/hosts is searched for a matching line. this search is very simple, though, and doesn't correctly exclude lines that start with the comment character #. in fact, those hash characters may even be included in the ip address extracted from the file, which obviously is no good.
issue
if
g:roku_ip
is set to a hostname defined in the local hosts file (e.g.rokutv
),/etc/hosts
is searched for a matching line. this search is very simple, though, and doesn't correctly exclude lines that start with the comment character#
. in fact, those hash characters may even be included in the ip address extracted from the file, which obviously is no good.to reproduce
run the following:
then in vim: