1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-05 08:08:02 +00:00

Add Deleting Directories Of Files From netrw as a vim til.

This commit is contained in:
jbranchaud
2015-09-12 13:32:57 -05:00
parent 83ca6bb4cb
commit c7f02f7900
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Deleting Directories Of Files From netrw
In `netrw`, you can delete files and directories by navigating over the
target of deletion and hitting `D`.
By default, `netrw` will use `rmdir` when deleting directories. This means
that if a directory has files in it, then it won't be deleted. `rmdir`
rightly gives an error when the target directory isn't empty.
`netrw` can be configured to use `rm -r` instead of `rmdir` when deleting
directories.
```
:let g:netrw_localrmdir='rm -r'
```
[source](https://gist.github.com/KevinSjoberg/5068370)