For example: I have a file longest_substring_no_repeating_chars.cc. One day I want to rename it to longest_substr_no_repeating_chars.cc. How do I do it by editing the old name? Or is there any convenient way to do it?
For example: I have a file longest_substring_no_repeating_chars.cc . One day I want to rename
Share
Assuming you want to rename the file you’re currently editing you can define a function like this one:
And the you can bind it to a key combo like C-c r
Otherwise, @Oleg’s suggestion to use
diredis a great option.