Hi, Thank you for both replies.
On Nov 9, 5:51 pm, ZyX <[email protected]> wrote: > Reply to message «Re: no echo output in command line», > sent 10:36:13 09 November 2010, Tuesday > by rameo: > > > As you've indicated, I removed the silent! flag, removed the exe > > before setlocal..., changed exe matchadd to call matchadd. > > Still no echo output. Changed it to echomsg, but still no output. > > Have you checked `:messages'? Even your first version should echo something. > How > do you run this function? No, nothing about this in ":messages". I run this script in menu.vim The script works fine, it colored all the non latin1 characters as I intended. I noted that the encoding lines disabled the echo output. Without the encoding lines i receive an echo output. > > > 1) printing > > I cannot print in utf8 format on my printer in VIM. > > Letters as èéà are printed as A' and other string symbols > > I do not have any problem printing in utf8 format in other text > > editors. > > Never experienced this problem (but never printed from vim). Opened new file, > wrote «∭x²y²z²dxdydz» there, got «□x²y²z²dxdydz» in terminal and > «¿x²y²z²dxdydz» > on the paper. `enc' is `utf-8', `fenc' also `utf-8'. Did > $ touch b > $ vim b > e ++enc=latin1 > ièéà^[:hardcopy > got `èéà' on paper. What is your system? What gives the output of ``echo > &printencoding''. (According to the help, `:hardcopy' does not have multibyte > support. Empty printencoding acts like printencoding=latin1.) > Same here. In latin1 I can print fine. In utf8 not. I have to remove/modify all non latin1 characters before printing. > BTW, I never printed from vim before and now won't ever try to print from vim. You also do not print in Vim??? Why so many people do not print in Vim? Is there no way to make printing interesting enough to print in Vim self? > Try built-in `:TOhtml' or mine `formatvim' Yes, that is what I did a few times. Now I'm transferring the text in another text editor and print from there. > (http://www.vim.org/scripts/script.php?script_id=3113) and print resulting > html > instead. > > > 2) opening files > > Vim doesn't detect utf-8 or latin1 well. > > Everything is mixed up. > > Without anything written in the vimrc file, > > all utf8 files are opened in latin1 (with unreadable éòà letters) > > > If I put this ":set fileencodings=ucs-bom,utf-8,default,latin1" in my > > vimrc, > > all latin1 files are opened in utf8 format (with unreadable - > > converted- éòà letters) > > Try ``set fileencodings=ucs-bom,utf-8,latin1,default''. > I've already tried this one a few days ago. It opened all my (latin1) files in utf8 and corrupted a few one after saving. > signature.asc > < 1KViewDownload You ask me about printencoding in your other message. No output echoing it. (printencoding is only available when compiled with the |+printer| and |+postscript| features, not in gvim. I use gvim} I'm thinking to stop trying with encoding. I dedicated so much time to it. I'll put everything in latin1 (global default), avoiding utf8 text and print in browser or other texteditors. Why is it that other editors do not have problems to save text in utf8 and recognizing the text as latin1 or utf8 (with/without BOM) when I reopen the file? Is it easier in windows to do this? Vim is such a great editor, the best of all i.m.o., why can't the printing problems (encoding problems) not being resolved, why is it necessary that so many people have to print in external applications? There is also another annoying thing, when printing in gvim, the text has to be formatted before printing, if not it breaks in the middle of words. Thanks for your help :) Rameo -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
