• Custom Search

Delete control characters in VIM

image

Recently I had to review some very large registry files (.reg).

Trouble was when the file was large, VIM somehow displays also the control characters.

This made the file difficult to read.

The solution is to delete all the control characters with

:%s/[[:cntrl:]]//g

and voila:

image

Technorati tags:

Read more work articles

This entry was posted in work. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*