From https://bugzilla.redhat.com/show_bug.cgi?id=691958 --- ldapvi-1.7/ldapvi.c +++ ldapvi-1.7/ldapvi.c @@ -1414,7 +1414,7 @@ write_file_header(FILE *s, cmdline *cmdline) int nlines = 0; if (print_binary_mode == PRINT_UTF8 && !cmdline->ldif) { - fputs("# -*- coding: utf-8 -*- vim:encoding=utf-8:\n", s); + fputs("# -*- coding: utf-8 -*- \n", s); nlines++; } if (cmdline->ldif) {