2

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

Matt Briggs
  • 41,224
  • 16
  • 95
  • 126
  • AFAICT vim does not allow 'redefining' standard ex commands (:e and :b, e.g.) `:e` on my system uses the current window (you'd have to `:tabedit`, `:split`, `:vert split`) to get a different window. – sehe Jul 03 '11 at 23:03

1 Answers1

1

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.

Michael Markert
  • 3,986
  • 2
  • 19
  • 19