tags:

views:

88

answers:

4

When I do: /.html Vim looks for html

I would like to replace all the .html with .php

Something like this: :%s/html ext/php ext/g

+2  A: 

Escape it. The . is a regex character which means "any character", so you need to escape it with \.

:%s/\.html/.php/g
Samir Talwar
Sorry, guys but I can just accept one answer
janoChen
+2  A: 

Just escape the . character.

Search for /\.html

Luiz Damim
+1  A: 

Use backslach to escape the dot.

/\.html will look for ".html".

Didier Trosset
+1  A: 

Try escaping period character: /\.html

Danny Whitt
Wow - I am way too slow. :(
Danny Whitt