Fix plugin causing error bell

This fixes #29. The error bell is caused by unnecessary pressing of <Esc> from
Normal mode. The plugin now is more strict about when executing <Esc> is
necessary.