Fix ag vim functions