(set-on-auto-command vim callback)

Example

(set-on-auto-command vim (fn [buffer-ptr event] (case event EVENT_BUFENTER (println "User entered a buffer") nil)))