[ldapvi] [PATCH] use fileencoding instead of encoding for vim
Devin J. Pohly
djpohly at gmail.com
Sun Jan 23 19:36:50 CET 2011
When running ldapvi, vim complains about setting 'encoding' in a
modeline, since that defines vim's internal encoding. I think ldapvi
means to use the 'fileencoding' option.
---
ldapvi/ldapvi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ldapvi/ldapvi.c b/ldapvi/ldapvi.c
index 7b312f8..f99efd7 100644
--- a/ldapvi/ldapvi.c
+++ b/ldapvi/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 -*- vim:fileencoding=utf-8:\n", s);
nlines++;
}
if (cmdline->ldif) {
--
1.7.3.5
More information about the ldapvi
mailing list