On 08/07/13 20:28, Peter Peter wrote:
I found a solution.  The only con is that it loads all the files up
front, so it may take a while if you have large files.

Taken from https://github.com/evaryont/dotfiles/blob/master/vimrc which
is maintained by Colin Shea <[email protected] <mailto:[email protected]>>.
-- .vimrc
" Avoid E173
if argc() > 1
   silent blast " load last buffer
   silent bfirst " switch back to the first
endif
---


Better late than never?

This means you will never get E173, not even when you would want to be reminded that you forgot some of your edits.

Maybe the following? (untested)

command -bang -bar Qfast call Qfast(<q-bang>)
func Qfast(bang)
        if a:bang == "" " optional: if no ! write all modified named files
                set awa "
        endif           "
        try
                exe 'qa' . a:bang
        catch /^Vim\%((\a\+)\)\=:E173/
                exe 'qa' . a:bang
        endtry
endfunc


Best regards,
Tony.
--
Be assured that a walk through the ocean of most Souls would scarcely
get your Feet wet.  Fall not in Love, therefore: it will stick to your
face.
                -- National Lampoon, "Deteriorata"

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to