[linux] vim±àÂë
VimºÍËùÓеÄÁ÷ÐÐÎı¾±à¼Æ÷Ò»Ñù£¬¿ÉÒԺܺõı༸÷ÖÖ×Ö·û±àÂëµÄÎļþ£¬Õ⵱Ȼ°üÀ¨ UCS-2¡¢UTF-8 µÈÁ÷ÐÐµÄ Unicode ±àÂ뷽ʽ¡£¶øÇҺͺܶàÀ´×Ô Linux ÊÀ½çµÄÈí¼þÒ»Ñù£¬ÕâÐèÒªÄã×Ô¼º¶¯ÊÖÉèÖá£
Vim ÓÐËĸö¸ú×Ö·û±àÂ뷽ʽÓйصÄÑ¡Ïencoding ¡¢fileencoding ¡¢fileencodings ¡¢termencoding (ÕâЩѡÏî¿ÉÄܵÄÈ¡ÖµÇë²Î¿¼ Vim ÔÚÏß°ïÖú :help encoding-names)£¬ËüÃǵÄÒâÒåÈçÏÂ:
1¡¢ encoding : Vim ÄÚ²¿Ê¹ÓõÄ×Ö·û±àÂ뷽ʽ£¬°üÀ¨ Vim µÄ buffer (»º³åÇø)¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢Îı¾µÈ¡£Óû§ÊÖ²áÉϽ¨ÒéÖ»ÔÚ .vimrc ÖиıäËüµÄÖµ£¬ÊÂʵÉÏËƺõÒ²Ö»ÓÐÔÚ .vimrc ÖиıäËüµÄÖµ²ÅÓÐÒâÒå¡£
2¡¢ fileencoding : Vim Öе±Ç°±à¼µÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬Vim ±£´æÎļþʱҲ»á½«Îļþ±£´æΪÕâÖÖ×Ö·û±àÂ뷽ʽ (²»¹ÜÊÇ·ñÐÂÎļþ¶¼Èç´Ë)¡£
3¡¢ fileencodings : Vim Æô¶¯Ê±»á°´ÕÕËüËùÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¼´½«´ò¿ªµÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬²¢ÇÒ½« fileencoding ÉèÖÃΪ×îÖÕ̽²âµ½µÄ×Ö·û±àÂ뷽ʽ¡£Òò´Ë×îºÃ½« Unicode ±àÂ뷽ʽ·Åµ½Õâ¸öÁбíµÄ×îÇ°Ã棬½«À¶¡Óïϵ±àÂ뷽ʽ latin1 ·Åµ½×îºóÃæ¡£
4¡¢ termencoding : Vim Ëù¹¤×÷µÄÖÕ¶Ë (»òÕß Windows µÄ Console ´°¿Ú) µÄ×Ö·û±àÂ뷽ʽ¡£Õâ¸öÑ¡ÏîÔÚ Windows ϶ÔÎÒÃdz£ÓÃµÄ GUI ģʽµÄ gVim ÎÞЧ£¬¶ø¶Ô Console ģʽµÄ Vim ¶øÑÔ¾ÍÊÇ Windows ¿ØÖÆ̨µÄ´úÂëÒ³£¬²¢ÇÒͨ³£ÎÒÃDz»ÐèÒª¸Ä±äËü¡£
ºÃÁË£¬½âÊÍÍêÁËÕâÒ»¶ÑÈÝÒ×ÈÃÐÂÊÖ·¸ºýÍ¿µÄ²ÎÊý£¬ÎÒÃÇÀ´¿´¿´ Vim µÄ¶à×Ö·û±àÂ뷽ʽ֧³ÖÊÇÈçºÎ¹¤×÷µÄ¡£
1¡¢ Vim Æô¶¯£¬¸ù¾Ý .vimrc ÖÐÉèÖÃµÄ encoding µÄÖµÀ´ÉèÖà buffer¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢ÎĵÄ×Ö·û±àÂ뷽ʽ¡£
2¡¢ ¶ÁÈ¡ÐèÒª±à¼µÄÎļþ£¬¸ù¾Ý fileencodings ÖÐÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¸ÃÎļþ±àÂ뷽ʽ¡£²¢ÉèÖà fileencoding Ϊ̽²âµ½µÄ£¬¿´ÆðÀ´ÊÇÕýÈ·µÄ (×¢1) ×Ö·û±àÂ뷽ʽ¡£
3¡¢ ¶Ô±È fileencoding ºÍ encoding µÄÖµ£¬Èô²»Í¬Ôòµ÷Óà iconv ½«ÎļþÄÚÈÝת»»Îª encoding ËùÃèÊöµÄ×Ö·û±àÂ뷽ʽ£¬²¢ÇÒ°Ñת»»ºóµÄÄÚÈݷŵ½Îª´ËÎļþ¿ª±ÙµÄ buffer À´ËʱÎÒÃǾͿÉÒÔ¿ªÊ¼±à¼Õâ¸öÎļþÁË¡£×¢Ò⣬Íê³ÉÕâÒ»²½¶¯×÷ÐèÒªµ÷ÓÃÍⲿµÄ iconv.dll (×¢2)£¬ÄãÐèÒª±£Ö¤Õâ¸öÎļþ´æÔÚÓÚ $VIMRUNTIME »òÕßÆäËûÁÐÔÚ PATH »·¾³±äÁ¿ÖеÄĿ¼Àï¡£
4¡¢ ±à¼Íê³Éºó±£´æÎļþʱ£¬ÔÙ´Î¶Ô±È fileencoding ºÍ encoding µÄÖµ¡£Èô²»Í¬£¬Ôٴε÷Óà iconv ½«¼´½«±£´æµÄ buffer ÖеÄÎı¾×ª»»Îª fileencoding ËùÃèÊöµÄ×Ö·û±àÂ뷽ʽ£¬²¢±£´æµ½Ö¸¶¨µÄÎļþÖС£Í¬Ñù£¬ÕâÐèÒªµ÷Óà iconv.dll
ÓÉ ÓÚ
Ïà¹ØÎĵµ£º
Ò»¡¢ ¸Å¿ö
¡¡¡¡ÏµÍ³µÄÒýµ¼ºÍ³õʼ»¯ÊDzÙ×÷ϵͳʵÏÖ¿ØÖƵĵÚÒ»²½£¬Ò²ÊǼ¯ÖÐÌåÏÖϵͳÓÅÁÓµÄÖØÒª²¿·Ö¡£LINUX×÷Ϊһ¸öÃâ·ÑµÄ×¼UNIX²Ù×÷ϵͳ£¬ÔÚÖÚ¶àÒµÓà°®ºÃÕßÒÔ¼°Ð¡ÐÍÉÌÒµ´¦ÀíÊг¡±íÏÖ²»Ë×£¬³ÉΪ¼ÌWINDOWSϵÁкóµÄÁíÒ»¸öÖ÷Á÷¡£Á˽âLINUXϵͳµÄ³õʼ»¯£¬¶ÔÓÚ½øÒ»²½ÕÆÎÕUNIXϵͳÊÇÊ®·ÖÓаïÖúµÄ¡£
ͨ³££¬LINUXϵͳµÄ³õʼ»¯¿ÉÒÔ· ......
ÔÚCenotOS 5.3ÖÐÎÄ»·¾³Ï°²×°Oracle 10g R2ʱ£¬½øÈëͼÐλ¯½çÃæºó£¬·¢ÏÖÖÐÎÄÂÒÂë¡£
ÔÚÍøÉÏËÑË÷ºó£¬·¢ÏÖÊÇÓÉÓÚLinuxÉÏûÓа²×°Oracle°²×°Ê±Ê¹ÓõÄ×ÖÌå¿âÔì³ÉµÄ¡£
´ÓÒÔÏÂÍøÕ¾ÏÂÔØ×ÖÌå¿â
http://download.csdn.net/source/1073202
È»ºóÔÚLinuxÏÂÖ´ÐÐÒÔÏÂÃüÁ°Ñ×ÖÌå¿â°²×°µ½ÏàӦλÖü´¿É
mkdir -p /usr/share/fonts/zh_CN ......
RHEL5ÔÚ°²×°VM-wareTools¹ý³ÌÖгöÏÖÈçÏ´íÎó£º
What is the
location of the directory of C header files that match your running kernel?
[/usr/src/linux/include] The directory of kernel headers (version
2.6.18-8.el5xen) does not match
´Ë´íÎóÖ÷ÒªÊÇÏëÕÒLinuxÄں˵İüº¬Í·ÎļþÕÒ²»µ½¡£Òª½â¾ö´ËÎÊÌâÐèÒª° ......