Linux Vi Conversion Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have
Conversion Error Definition
Meta Discuss the workings and policies of this site About Us conversion error psychology Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CONVERSION ERROR in vim up vote 10 down vote favorite 1 Adding set listchars=tab:▸\ ,trail:·,extends:#,nbsp:· line is causing "CONVERSION ERROR" while saving the vimrc file. I am using gvim 7.3 under Window 7. I have added this character using ("▸") using ctrl-vu 25B8. my vimrc file has also set encoding=utf-8 Is it possible to resolve this error. Thanks vim share|improve this question asked Oct 10 '12 at 7:41 dearvivekkumar 73621436 Got the fix, I need to place a space character after ▸\ like ▸\ , stackoverflow.com/questions/3766204/vim-doesnt-support-unicode –dearvivekkumar Oct 10 '12 at 11:56 I had the same problem. @IngoKarat's answer solved it. I was trying to use ˒ as my tab char. It's a little more inconspicuous. :D –trusktr Mar 2 '14 at 5:34 add a comment| 2 Answers 2 active oldest votes up vote 24 down vote Try saving with :w ++enc=utf-8. Also, it's recommended to put scriptencoding utf-8 at the top of your .vimrc. share|improve this answer answered Oct 10 '12 at 8:28 Ingo Karkat 97.9k1083127 1 saving file using w ++enc=utf-8 way resolve the error. But doing :so $MYVIMRC giving E474: Invalid argument: listchars=tab:¿\,trail:,extends:#,nbsp:. –dearvivekkumar Oct 10 '12 at 11:46 2 @dearvivekkumar Don’t forget about the second advice with sc
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question http://stackoverflow.com/questions/12814371/conversion-error-in-vim Anybody can answer The best answers are voted up and rise to the top What does [converted] mean at the bottom of vim? up vote 23 down vote favorite 1 I have a log file, and when I open it via vim, it looks not readable, and it has [converted] at the bottom. What does [converted] mean? Is there a way to fix the format issue so that http://unix.stackexchange.com/questions/126238/what-does-converted-mean-at-the-bottom-of-vim it is human readable? vim vi share|improve this question asked Apr 24 '14 at 3:49 Mingyu 21827 There is no guarantee that a log file is humanly readable. At least some of the files in /var/log/ are not. Which program did make the log file? What is its file name? –Anthon Apr 24 '14 at 4:16 @Anthon The original log looks good, but after the log rotation by daemontools, it is no longer human readable. –Mingyu Apr 24 '14 at 13:06 Did it get compressed by the rotation. Did you run the file command on the file? –Anthon Apr 24 '14 at 13:38 @Anthon The file type is data. What does that mean? –Mingyu Apr 24 '14 at 13:58 Essentially that the file command does not recognize the type with further accuracy, or that entries are missing in the magic rules. –Anthon Apr 24 '14 at 14:04 | show 5 more comments 3 Answers 3 active oldest votes up vote 20 down vote accepted It means that vim detected that the file did not match the charset given by your locale and made a conversion. If you run the command :set from within
GoogleВойтиСкрытые поляПоиск групп или сообщений
※このエリアは、60日間投稿が無い場合に表示されます。記事を投稿すると、表示されなくなります。 viの文字コードを指定する 2010-12-22 22:55:37|環境 viでログファイルを見るときに、tailだと文字化けしないのにviだと文字化けするので面倒だなぁ~と思っていました。 どうもRedHatはviでEUC以外のファイルを開くと化けるらしいです。 (うちのサーバはなぜかSJIS)。 で、調べたら、文字コードを指定する方法がありました。 SJISにしたい場合は、「:e ++enc=sjis」でOKとのこと。 ちなみにその他文字コードは、 :e ++enc=utf-8 :e ++enc=euc-jp :e ++enc=iso-2022-jp 等です。 でも、なぜか「CONVERSION ERROR」になり文字化けが直りません。 起動直後に文字コードが設定されていないときに、この「CONVERSION ERROR」になるので、その場合は、文字コードをセットしてあげます。 例):set enc=sjis これでやっと正常表示されました。 『OS』ジャンルのランキング コメント Tweet «Windowsサーバを2000→2003へ...|トップ|CDレシーバR-K711購入しました» このブログの人気記事 VirtualBoxでディスクエラーになる場合の対処法(SA... DVDプレーヤ「GHV-DV300K」を購入しました 最近、巷でBCPという言葉を聞くことが多くなりました RDPとかVNCって便利ですよね R-K711に光ケーブル接続 R-K711のアナログ接続間違ってました(音きれいです) PostgreSQL9.0のレプリケーション機能のパフォーマ... viの文字コードを指定する Virtual PC 2007の導入記録(Windows2000) PostgreSQLのデータ型によるテーブルサイズについて 最近の画像[もっと見る] viをカラー表示する 6年前 VirtualBoxの初期設定の癖について 6年前 VirtualBoxの初期設定の癖について 6年前 VirtualBoxでディスクエラーになる場合の対処法(SATA→IDE) 6年前 VirtualBoxでディスクエラーになる場合の対処法(SATA→IDE) 6年前 VirtualBoxでディスクエラーになる場合の対処法(SATA→IDE) 6年前 VirtualBoxでディスクエラーになる場合の対処法(SATA→IDE) 6年前 VirtualBoxでディスクエラーになる場合の対処法(SATA→IDE) 6年前 VirtualBoxでディスクエラーになる場合の対処法(SATA→IDE) 6年前 VirtualBoxでディスクエラーになる場合の対処法(SATA→IDE) 6年前 コメントを投稿 名前 タイトル URL ※名前とURLを記憶