Am 09.02.2016 um 20:48 schrieb Anton Lindqvist:
Can you think of a command or situation where this patch provides a
nice, useful solution?

Other than the examples already provided, here's a couple of ideas:

- Opening a new file in a non existing directory and then write triggers a E212
   which could be caught and then before writing again try to create the
   directory (%:h) of the file.

You can already do something like (quoted from somewhere ...):

:au BufWrite * if v:cmdbang && !isdirectory(expand('%:h')) | cal 
mkdir(expand('%:h'), 'p')| endif

--
Andy

--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui