vim compile script improve, function improve