Is it possible to rename a file in NERDTree? I know about the m menu but there is no rename option.
Asked
Active
Viewed 1.4k times
2 Answers
116
Use Move
, (m)ove the current node
in the m menu to rename.

iMom0
- 12,493
- 3
- 49
- 61
-
3You should learn to accept and vote on answers that has been helpful to you – iMom0 Jun 26 '12 at 05:20
-
Is there a way to rename it without typing out the full path a 2nd time? – Alexander Tsepkov May 01 '20 at 18:25
-
Note: it does not update the imports of other files. – Gabriel Beauchemin-Dauphinais Apr 22 '21 at 02:19
-
Just to clarify, when you pick a node in the tree, then press "m" to reveal the hidden menu. This is crazy! – windmaomao Feb 07 '22 at 15:40
8
Just to clarify @iMom0's answer:
To rename a file in NerdTree, navigate to it, then press mm
.
It will open a prompt with the old full path already written for you, which you can modify to type the new name of the file.

adamency
- 682
- 6
- 13