View Single Post
  #6   (View Single Post)  
Old 13th December 2008
sverreh's Avatar
sverreh sverreh is offline
Real Name: Sverre Hval
Port Guard
 
Join Date: Apr 2008
Location: Norway
Posts: 36
Default

Quote:
Originally Posted by J65nko View Post
You also can restore the blanks into underscores with:
Code:
:%s/ pkg/_pkg/
Right! But only when all the file names that you want to modify have "pkg" after the blank. I was trying to be a little more general here.

Quote:
In vi as well in sed and perl, you can avoid the 'leaning toothpick syndrome' by choosing another delimiter
Good idea! Looks better, and may even be easier to debug.
Reply With Quote