 <p>In private conversation, @Nicklasos suggest me another way how to do what I need - using argv() function. It is just:</p> <pre><code>if argc() == 0 autocmd VimEnter * call RestoreSess() end </code></pre>