Linuxϵͳ¹¥ÂÔ VimµÄ±àÂë¼°×ÖÌåÎÊÌâÏê½â
·¢²¼Ê±¼ä£º2007.07.30 06:16
À´Ô´£ºÈüµÏÍø
×÷Õߣºsixth
ºÍËùÓеÄÁ÷ÐÐÎı¾±à¼Æ÷Ò»
Ñù£¬Vim ¿ÉÒԺܺõı༸÷ÖÖ×Ö·û±àÂëµÄÎļþ£¬Õ⵱Ȼ°üÀ¨UCS-2¡¢UTF-8 µÈÁ÷ÐÐµÄ Unicode ±àÂ뷽ʽ¡£È»¶ø²»ÐÒµÄÊÇ£¬ºÍºÜ¶àÀ´×Ô
Linux ÊÀ½çµÄÈí¼þÒ»Ñù£¬ÕâÐèÒªÄã×Ô¼º¶¯ÊÖÉèÖá£
Vim
ÓÐËĸö¸ú×Ö·û±àÂ뷽ʽÓйصÄÑ¡Ïencoding¡¢fileencoding¡¢fileencodings¡¢termencoding
(ÕâЩѡÏî¿ÉÄܵÄÈ¡ÖµÇë²Î¿¼ Vim ÔÚÏß°ïÖú :help encoding-names)£¬ËüÃǵÄÒâÒåÈçÏÂ:
* encoding: Vim ÄÚ²¿Ê¹ÓõÄ×Ö·û±àÂ뷽ʽ£¬°üÀ¨ Vim µÄ
buffer (»º³åÇø)¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢Îı¾µÈ¡£Ä¬ÈÏÊǸù¾ÝÄãµÄlocaleÑ¡Ôñ.Óû§ÊÖ²áÉϽ¨ÒéÖ»ÔÚ .vimrc
ÖиıäËüµÄÖµ£¬ÊÂʵÉÏËƺõÒ²Ö»ÓÐÔÚ.vimrc
ÖиıäËüµÄÖµ²ÅÓÐÒâÒå¡£Äã¿ÉÒÔÓÃÁíÍâÒ»ÖÖ±àÂëÀ´±à¼ºÍ±£´æÎļþ£¬ÈçÄãµÄvimµÄencodingΪutf-8,Ëù±à¼µÄÎļþ²ÉÓÃcp936±àÂë,vim»á
×Ô¶¯½«¶ÁÈëµÄÎļþת³Éutf-8(vimµÄÄܶÁ¶®µÄ·½Ê½£©£¬¶øµ±ÄãдÈëÎļþʱ,ÓÖ»á×Ô¶¯×ª»Ø³Écp936£¨ÎļþµÄ±£´æ±àÂë).
* fileencoding: Vim Öе±Ç°±à¼µÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬Vim
±£´æÎļþʱҲ»á½«Îļþ±£´æΪÕâÖÖ×Ö·û±àÂ뷽ʽ (²»¹ÜÊÇ·ñÐÂÎļþ¶¼Èç´Ë)¡£
* fileencodings:
Vim×Ô¶¯Ì½²âfileencodingµÄ˳ÐòÁÐ±í£¬ Æô¶¯Ê±»á°´ÕÕËüËùÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¼´½«´ò¿ªµÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬²¢ÇÒ½«
fileencoding ÉèÖÃΪ×îÖÕ̽²âµ½µÄ×Ö·û±àÂ뷽ʽ¡£Òò´Ë×îºÃ½«Unicode ±àÂ뷽ʽ·Åµ½Õâ¸öÁбíµÄ×îÇ°Ã棬½«À¶¡Óïϵ±àÂ뷽ʽ
latin1 ·Åµ½×îºóÃæ¡£
* termencoding: Vim Ëù¹¤×÷µÄÖÕ¶Ë (»òÕß Windows µÄ
Console ´°¿Ú)
µÄ×Ö·û±àÂ뷽ʽ¡£Èç¹ûvimËùÔÚµÄtermÓëvim±àÂëÏàͬ£¬ÔòÎÞÐèÉèÖá£ÈçÆ䲻Ȼ£¬Äã¿ÉÒÔÓÃvimµÄtermencodingÑ¡Ï×Ô¶¯×ª»»³Éterm
µÄ±àÂë.Õâ¸öÑ¡ÏîÔÚ Windows ϶ÔÎÒÃdz£ÓÃµÄ GUI ģʽµÄ gVim ÎÞЧ£¬¶ø¶Ô Console ģʽµÄVim ¶øÑÔ¾ÍÊÇ Windows
¿ØÖÆ̨µÄ´úÂëÒ³£¬²¢ÇÒͨ³£ÎÒÃDz»ÐèÒª¸Ä±äËü¡£
ºÃÁË£¬½âÊÍÍêÁËÕâÒ»¶ÑÈÝÒ×ÈÃÐÂÊÖ·¸ºýÍ¿µÄ²ÎÊý£¬ÎÒÃÇÀ´¿´¿´ Vim
µÄ¶à×Ö·û±àÂ뷽ʽ֧³ÖÊÇÈçºÎ¹¤×÷µÄ¡£
1. Vim Æô¶¯£¬¸ù¾Ý .vimrc ÖÐÉèÖÃµÄ encoding µÄÖµÀ´ÉèÖÃ
buffer¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢ÎĵÄ×Ö·û±àÂ뷽ʽ¡£
2. ¶ÁÈ¡ÐèÒª±à¼µÄÎļþ£¬¸ù¾Ý fileencodings
ÖÐÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¸ÃÎļþ±àÂ뷽ʽ¡£²¢ÉèÖà fileencoding Ϊ̽²âµ½µÄ£¬¿´Æ
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
1¡¢ÏÂÔØphpMyAdminÖÁweb·þÎñÆ÷Ŀ¼²¢ÖØÃüÃûΪ£ºphpmyadmin¡£¼ÙÉè·þÎñÆ÷Ŀ¼Ϊwww£¬Ôò´æ·ÅλÖÃΪwww/phpmyadmin£¬·ÃÎÊ·¾¶Îªhttp://localhost/phpmyadmin
2¡¢¸´ÖÆ"/phpmyadmin/libraries/"Ŀ¼ÏµÄ"config.default.php"ÎļþÖÁ"/phpmyadmin/"Ŀ¼Ï£¬²¢ÖØÃüÃûΪ"config.inc.php"
3 ......
¼ÙÉèphp°²×°ÔÚ/usr/local/php5/bin/php£¬³õʼÔÚÃüÁîÐÐÖ´ÐÐPHPµÄʱºòÒªÊäÈëÒ»³¤´®µÄ·¾¶£¬eg£º
$>/usr/local/php5/bin/php phpinfo.php
·Ç³£µÄÂé·³£¬ÏÖÔÚÖ»Ð轫php¿½±´ÖÁusr/sbinĿ¼¼´¿ÉÖ±½ÓʹÓÃphpÃüÁeg£º
$>cp /usr/local/php5/bin/php /usr/sbin/
$>php phpinfo.php
......
Ò»¡£linuxϵͳµÄĬÈϱàÂëÉèÖá£
/etc/sysconfig/i18n
Controls the system font
settings. The language variables are used in /etc/profile.d/lang.sh. An
example i18n file:
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN ......