For Vim? The variable is being referenced tons of times throughout your code, so
ID: 3706678 • Letter: F
Question
For Vim?The variable is being referenced tons of times throughout your code, so it would waste too much time to change all these references manually. Assume the variable name is “tmp”, and you would like to rename it into min_elapsed, what is the sequence of keystrokes you should type?
Thank you? For Vim?
The variable is being referenced tons of times throughout your code, so it would waste too much time to change all these references manually. Assume the variable name is “tmp”, and you would like to rename it into min_elapsed, what is the sequence of keystrokes you should type?
Thank you?
The variable is being referenced tons of times throughout your code, so it would waste too much time to change all these references manually. Assume the variable name is “tmp”, and you would like to rename it into min_elapsed, what is the sequence of keystrokes you should type?
Thank you?
Explanation / Answer
The Key Stroke Sequence Type for find and replace in VIM
:%s/temp/min_elapsed/g
Command Syntax:
% -> search scope is file level
s -> serach and replace
next is string to searched and after that is string to be replaced.
g-> Means all intances of the search to be replaced.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.