Remove paging so that all of the config is shown at once, and you don't need to enter <return> a million times. config paging disable Then save your configs: save config and then show the running config: show run-config commands remove all preceding whitespaces: :%s/$ // :g/^$/d |