Removing automatically inserted indent when exiting insert mode
22 Sep
2011
22 Sep
'11
1:40 p.m.
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?
5506
Age (days ago)
5506
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolai Weibull