rc_scripts/vim: check for 'package main' and methods