2009年12月15日 vim-7.2 & less-418
_ vim-7.2 & less-418
$ tar xvjf vim-7.2.tar.bz2 $ tar xvzf vim-7.2-extra.tar.gz $ tar xvzf vim-7.2-lang.tar.gz $ cd vim7.2 $ ./configure --enable-multibyte --with-features=big --prefix=/usr/local/vim7 --without-x --disable-gui --disable-gpm $ make $ make test # make install
$ vi ~/.vimrc let &termencoding = &encoding set encoding=utf-8 set fileencodings=utf-8,euc-jp,cp932,default,latin
ascii BS, TAB, NL, CR, and formfeed are control characters, all chars with values between 32 and 126 are normal, and all others are binary. iso8859 Selects an ISO 8859 character set. This is the same as ASCII, except characters between 160 and 255 are treated as normal characters. latin1 Same as iso8859. latin9 Same as iso8859. dos Selects a character set appropriate for MS-DOS. ebcdic Selects an EBCDIC character set. IBM-1047 Selects an EBCDIC character set used by OS/390 Unix Services. This is the EBCDIC analogue of latin1. You get similar results by setting either LESSCHARSET=IBM-1047 or LC_CTYPE=en_US in your environment. koi8-r Selects a Russian character set. next Selects a character set appropriate for NeXT computers. utf-8 Selects the UTF-8 encoding of the ISO 10646 character set. UTF-8 is special in that it supports multi-byte characters in the input file. It is the only character set that supports multi-byte characters. windows Selects a character set appropriate for Microsoft Windows (cp 1251).