Search and replace using VIM function

Posted under » Linux on 19 Oct 2023

From basic VIM usage.

Search and replace is using the substitute command. See this also


You can use function to replace. Go to prompt :

function! Tukar()

You can also

:%s/\_s/^m/g #replace manual line break to ^m
:%s/<br>/\r /g #create line break

Then go to prompt :

:call Tukar()

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS data