> I'm looking for a good text editor that has a simple and quick scripting capability.
Vim and Emacs have neither of these things. They both pose a long and difficult barrier to entry.
However it sounds like you aren't looking for simple and quick. If you are running into limitations on your current editor, then it's time to swallow the pill and dive into one of the behemoths.
I don't know of any text editor that is guaranteed to have less limitations than Sublime Text, but also has a "simple and quick scripting capability".
I would recommend Vim as it's main focus is as a text editor. Emacs tries to do everything, Vim just tries to edit text. Emacs also has a mode that enables Vim key bindings, so if you choose Emacs later, you won't have to start from scratch.
Lastly, Emacs uses a dialect of Lisp for customization. Vim has it's own made up language. So this may be a reason to choose Emacs over Vim.