Monday, June 27, 2011

Re: Error with :.! commands

>>> Thanks for the mkdir suggestion. Next time I face it, it will come in
>>> handy.
>>
>> I made myself a command to do it some time ago, which you may find
>> useful:
>>
>> command! Mktmpdir call mkdir(fnamemodify(tempname(),"__:p:h"),"",0700)
>
> This is completely obscure to me. Where do I put this line?

You put the line in your ~/.vimrc ($HOME/_vimrc on Windows, I think) and
it defines a custom command, so when you want to use it, you just issue
:Mktmpdir from the commandline.

Hope that helps!

Ben.

--
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

No comments:

Post a Comment