Velocity/mode/insert.py
2022-03-19 19:19:25 +00:00

14 lines
248 B
Python

from core import cursors, modes
def execute(instance, key):
# Enter key
if key == 27:
# Switch to normal mode
modes.activate(instance, "normal")
def activate():
# Switch the cursor to a line
cursors.mode("line")