Matt Briggs
Matt Briggs

Reputation: 42178

How to add/change ex-mode mapping in viper/vimpulse?

really not a fan of :e and :b opening in another window, and would like to remap the functions they are calling.

Upvotes: 2

Views: 119

Answers (1)

Michael Markert
Michael Markert

Reputation: 4026

Viper ex commands are defined in ex-token-alist.

To add new commands (of course other approaches like consing and add-to-list are possible):

(push '("name" (do-this)) ex-token-alist)

Prior entries have higher priority than later, so if you want to override, just add them.

Upvotes: 1

Related Questions