KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Code sample: for file in files: do_something(root+file) I want to replace file with f but I must keep files . Usually I use the below command: :%s/file/f/gcI but it matches files as well. Is there any way to match only a whole word which works for the (root+file) syntax too?
Tags (comma-separated)
Save Edits
Cancel