I'm trying to vimify a task of editing bulk file move commands.
I'm using Fossil-SCM to manage a bunch of files and have some changes in directory structure. To get SCM to grasp the move, I have to supply the command fossil mv oldname newname
for each file.
Since it is some hundrets of files and different directories that changed, I have saved the output of fossil into a file showing on each line:
MISSING /path/to/missing/file
And I want to change that to
fossil mv "/path/to/missing/file" "/path/to/missing/file"
From there on theres nothing left than walk manually through the lines and change directory names as needed.
However, this conversion could safe much time.
I tried using RegEx, but somehow seems VIM to not accept the grouping... I tried:
:1;$s/^MISSING (.*)$/^fossil mv \"\1\" \"\1\"$
But as soon as i try to use parentheses in the search definition, vim states the pattern could not be found. So what would be the most vimic way to solve this?