3 ms·
Sublime Text 2 has both a Python API and a plugin that makes it act sort of like VIM. Frankly, the plugin is pretty bad if you're used to VIM, but there's activ
by notJim 15y ago
Sublime Text 2 has both a Python API and a plugin that makes it act sort of like VIM. Frankly, the plugin is pretty bad if you're used to VIM, but there's active development on it (it's open source [1]), and it's apparently good enough for many people. If you want to try this out, there's also a plugin that gives you an Ex-Mode [2], which I gather is something VIM users might want (I'm frankly not sure what it is.)
[1]: https://github.com/sublimehq/Vintage https://github.com/sublimehq/Vintage
[2]: https://github.com/SublimeText/VintageEx https://github.com/SublimeText/VintageEx
- laughinghan 15y agoEx-Mode let's you do all sorts of extremely useful things like running sed in-place on the current file, or only on the current selection text in the file, or do something like sed but interactive that will do a regex search-and-replace on the current file/selection but at each match give you the option of skipping that one. Ex-Mode also lets you do a lot of things unrelated to sed, including running an arbitrary shell command and inserting the stdout into the file at the cursor, but all the sed-like commands are what blew me away.