From b5b61fd61aa2ce4ea3a1d3cb0096fe8210e4bbab Mon Sep 17 00:00:00 2001 From: "Alexander E. Patrakov" Date: Thu, 10 Jun 2004 08:18:07 +0000 Subject: Various i18n-related changes to Vim. They need to be duplicated in BLFS also git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3772 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 9 +++++++++ chapter03/packages.xml | 12 ++++++++++-- chapter06/chapter06.xml | 2 +- chapter06/vim.xml | 28 +++++++++++++++++++++------- general.ent | 4 ++-- 5 files changed, 43 insertions(+), 12 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index ceffee332..70e1892f4 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -78,6 +78,7 @@ first a summary, then a detailed log. udev-026 udev-026-config-1.patch util-linux-2.12a-kernel_headers-1.patch +vim-6.3 language files @@ -104,6 +105,14 @@ first a summary, then a detailed log. +June 10, 2004 [alexander]: Added a command to autodetect the +character set of files being edited to /etc/vimrc + + +June 10, 2004 [alexander]: Added vim language files. Moved +vim after gettext in order for them to work + + June 9, 2004 [jeremy]: Upgraded to M4-1.4.1, after 9 years! diff --git a/chapter03/packages.xml b/chapter03/packages.xml index 4ae63725f..e2f7b2d46 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -383,12 +383,20 @@ -Vim (&vim-version;) - 3,193 KB: +Vim (&vim-version;) - 3,612 KB: + +Vim (&vim-version;) language files (optional) - 1,033 KB: + + + + + + Zlib (&zlib-version;) - 277 KB: @@ -398,7 +406,7 @@ -Total size of these packages: 134 MB +Total size of these packages: 135 MB 1) File (&file-version;) may not be available by the time you read this. The site administrators of the master download location are known to occasionally diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index a99b76af8..f981c3d33 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -30,7 +30,6 @@ - @@ -38,6 +37,7 @@ + diff --git a/chapter06/vim.xml b/chapter06/vim.xml index ffb38e01e..66f529bdb 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -35,7 +35,10 @@ suggested installation instructions. Installation of Vim -First change the default locations of the vimrc and +First, unpack both +vim-&vim-version;.tar.bz2 and (optionally) +vim-&vim-version;-lang.tar.gz archives into the same +directory. Then change the default locations of the vimrc and gvimrc configuration files to /etc. echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h @@ -45,11 +48,14 @@ echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h< ./configure --prefix=/usr --enable-multibyte -The optional --enable-multibyte switch -includes multibyte editing support into -vim. It is only needed for those people who ignore our recommendation not to -use LFS in locales with multibyte character sets, but it does not hurt -others. +The optional but highly recommended +--enable-multibyte switch +includes support for editing files in multibyte character encodings into +vim. It is needed for those people who ignore our recommendation not to +use LFS in locales with multibyte character sets. It is also needed for +people who want to be able to edit text files initially created +in Linux distributions like Fedora Core +that use UTF-8 as a default character set. Compile the package: @@ -99,6 +105,7 @@ set nocompatible set backspace=2 syntax on set background=dark +set fileencodings=ucs-bom,utf-8,your-8-bit-charset " End /etc/vimrc EOF @@ -112,7 +119,14 @@ backspacing over line breaks, autoindents and the start of insert. The syntax highliting, while set background=dark gives the highliting a better color scheme for use on the black background of a linux console. If you later use X and terminals with a light background, changing -this will be useful. +this will be useful. The set fileencodings=... makes +vim capable of detecting the character set of the +file being edited. This is useful because bleeding-edge distributions +like Fedora Core use UTF-8, and conservative ones like Debian +use traditional 8-bit encodings for text files. If you have not +passed the switch to the +./configure command above, this line will not work. + Documentation for other available options can be obtained by running the following command: diff --git a/general.ent b/general.ent index e7ec01baa..0faaaa39f 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - - + + -- cgit v1.2.3-54-g00ecf