title: How to come back to INSERT mode with the cursor at the same place from SELECT mode and (insert) SELECT mode?
body: <p>I made the following mapping in my vimrc:</p>
  
  <pre><code>cnoremap &lt;Leader&gt;&lt;Leader&gt; &lt;Esc&gt;&lt;Esc&gt;i
  </code></pre>
  
  <p>It works perfectly if I was in any mode before entering the COMMAND LINE mode, except if I was in (insert) SELECT (but it works fine in SELECT).
  In this case, the cursor goes back one position more on the left as it was initially.</p>
  
  <p>Of course, I could move it back with <code>&lt;Right&gt;</code>, but then it will be one position too much on the right for all the other situations that used to work fine.
  And since the mode() function does not distinguish (insert) SELECT from SELECT, I don't know either how to distinguish the mode I was originally in.</p>
  
  <p>Is there a solution?</p>