The main functionality of Evil is implemented in terms of reusable macros. Package writers can use these to define new commands.