On the Galerkin method with vector basis functions