1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-07 17:18:02 +00:00

Add Rename A File Through netrw as a vim til

This commit is contained in:
jbranchaud
2019-11-21 14:40:49 -06:00
parent eb765c83c7
commit 975db72ec9
2 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
# Rename A File Through netrw
You can browse files in a directory through Vim using netrw. This can be done
by _editing_ a directory with Vim:
```bash
$ vim src/
```
You'll see a listing of the files and directories in `src`:
```
app/
index.js
README.md
utils/
```
You can move your cursor over one of those files and hit `R` to rename it. A
prompt will appear at the bottom of your Vim session with the file's current
name spelled out. You can edit inline and then hit enter to apply the renaming.
[source](https://superuser.com/questions/767026/can-i-rename-files-in-a-directory-with-vim#)