select a block with visual, then: :!cat -v To check that a file is completely plain ascii: cat -v filename > filename_clean diff filename filename_clean