Hi!

A suggested improvement is to remove automatically inserted indent
when exiting insert mode.  I guess the condition is that if the last
command was evil-ret when exiting insert mode, any indent
automatically inserted should be removed.  This is what Vim does.

It seems like it could be as easy as

(add-hook 'evil-insert-state-exit-hook
'evil-delete-autoindent-on-insert-state-exit)

(defun evil-delete-autoindent-on-insert-state-exit ()
  (if (eq last-command 'evil-ret)
      (delete-horizontal-space))))

without the horrible name.

What do you think?

_______________________________________________
implementations-list mailing list
[email protected]
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list

Reply via email to