I have a buffer that contains this sentence :
I go to a rendez-vous this evening.
and I have this function :
function MyFunction()
let myList = ["rendez-vous"]
let myFile = readfile(bufname(1))
for elem in myList
if match(myFile,elem)!=-1
echo elem
let elem2 = substitute(elem, '-', 'µ', 'gn')
echo elem2
exe '%s/'elem.'/'elem2
endif
endfor
endfunction
In my buffer, rendez-vous not become rendezµvous. Could you tell me why, please ?
substitute()
call? – Christian Brabandt Mar 31 '20 at 14:44