 <p>Instead of messing about with <code>errorformat</code>, just set <code>cscopequickfix</code> and use the normal <code>:cscope</code> commands. eg. (from vim help)</p> <pre><code>:set cscopequickfix=s-,c-,d-,i-,t-,e- </code></pre> <p>Edit</p> <p>You could also use a filter like the following to reorder the fields</p> <pre><code>sed -e 's/^\([^ ]\+\) \([^ ]\+\) \([^ ]\+\) \(.*\)$/\1 \3 \4 inside \2/' </code></pre> <p>set it to filter your message, then use the <code>efm</code></p> <pre><code>errorformat=%f\ %l\ %m </code></pre>