I have several files where I want to change a word in several files from oldWord to newWord.
Please note I want to do this with the new cpo feature. I also would like to do this in one command line chain, rather than one command at a time.
Should this command do it? Or is there a better way do this in VIM?
:set hidden | :vimgrep oldWord ./gulp-tasks/*.s | :cdo s/oldWord/newWord/g | :set wall ?
:argdo/:bufdomethod, the second:cdomethod, and the 3rd uses the tried and true unix shell method. All of which are valid have there own pro's and con's. I am not aware of a:cpocommand. I imagine you are looking for:cdo/:cfdo. See:h cdo. – Peter Rincker Dec 13 '17 at 17:59