I am trying to write a plugin to support a vim-like replace mode in Sublime. To accomplish this, there are a couple things that I need to be able to do:
toggle_overwrite
).Item 2 is more important because I could always detect and toggle if necessary.
How can I detect if overwrite mode is enabled?
Even though the question is tagged "sublimetext2", I'll note that Sublime Text 3 does offer functions to do what you want:
view.set_overwrite_status(True) # Or False
view.overwrite_status()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With