Why Atom Can’t Replace Vim – Learning the lesson of vi
... but vim is can be scripted too! the in-build scripting language is sometimes a bit awkward, but it works.  here is a big repository of scripts for vim. http://www.vim.org/scripts/index.php