move global search command out from ftplugins