Tuesday, July 9, 2013

Re: how to suppress "E173: 1 more file to edit"

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 <colin@evaryont.me <mailto:colin@evaryont.me>>.
> -- .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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment