On Wednesday, November 7, 2012 3:09:06 AM UTC-6, niva wrote:
> Hi,
>
>
>
> I know the delete() func to del a file but is there the same command to delete recursively a directory.
>
>
>
> Thank you
Nope. In the future, check the help. There is a list of all functions at :help function-list. In this case you could also probably get your answer by typing :help dir and then typing CTRL-D instead of Enter to see a list of matching topics.
For deleting directories in a script, you can check to see what netrw uses as its rmdir command, by using the g:netrw_rmdir_cmd variable. But you'll need to shell out to use it via system() or :!. And this variable is not set by default, you'll need to default to something based on your OS yourself, with has('win32') and similar checks.
--
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
Wednesday, November 7, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment