In Vim, I usually type &lt;img src=&quot;images&#x2F;…<p>and AutoComplPop[1] sets in, showing all files in that directory. As long as they have a descriptive name, it&#x27;s probably easier&#x2F;faster&#x2F;more reliable than drag and drop.<p>In fact, I actually type img ctrl-E, which expands to the tag above and places cursor at the right place.[2]<p>I know other editor have similar features, so it might be an alternative<p><pre><code>  [1] http:&#x2F;&#x2F;www.vim.org&#x2F;scripts&#x2F;script.php?script_id=1879
  [2] https:&#x2F;&#x2F;github.com&#x2F;rstacruz&#x2F;sparkup</code></pre>