simplifying navigation in command mode for both distant and local