Difference between revisions of "Vim"

From CBLFS
Jump to navigationJump to search
m (I reformatted the "Contents" section to to use tables.)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://ftp.at.vim.org/pub/vim/unix/vim-7.0.tar.bz2
+
| http://ftp.at.vim.org/pub/vim/unix/vim-{{Vim-Version}}.tar.bz2
 
|-
 
|-
 
!Translated Vim Messages:
 
!Translated Vim Messages:
| http://ftp.at.vim.org/pub/vim/extra/vim-7.0-lang.tar.gz
+
| http://ftp.at.vim.org/pub/vim/extra/vim-{{Vim-Version}}-lang.tar.gz
 
|-
 
|-
 
!Required Patch:
 
!Required Patch:
| http://svn.cross-lfs.org/svn/repos/patches/vim/vim-7.0-fixes-16.patch
+
| http://svn.cross-lfs.org/svn/repos/patches/vim/vim-{{Vim-Version}}-fixes-21.patch
 
|}
 
|}
  
Line 36: Line 36:
 
If desired, unpack the translated messages archive:
 
If desired, unpack the translated messages archive:
  
  tar -xf ../vim-7.0-lang.tar.gz --strip-components=1
+
  tar -xf ../vim-{{Vim-Version}}-lang.tar.gz --strip-components=1
  
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../vim-7.0-fixes-16.patch &&
+
  patch -Np1 -i ../vim-{{Vim-Version}}-fixes-21.patch &&
 
  echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
 
  echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
 
  echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
 
  echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
Line 57: Line 57:
 
If desired, unpack the translated messages archive:
 
If desired, unpack the translated messages archive:
  
  tar -xf ../vim-7.0-lang.tar.gz --strip-components=1
+
  tar -xf ../vim-{{Vim-Version}}-lang.tar.gz --strip-components=1
  
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../vim-7.0-fixes-16.patch &&
+
  patch -Np1 -i ../vim-{{Vim-Version}}-fixes-21.patch &&
 
  echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
 
  echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
 
  echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
 
  echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
Line 76: Line 76:
 
If desired, unpack the translated messages archive:
 
If desired, unpack the translated messages archive:
  
  tar -xf ../vim-7.0-lang.tar.gz --strip-components=1
+
  tar -xf ../vim-{{Vim-Version}}-lang.tar.gz --strip-components=1
  
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../vim-7.0-fixes-16.patch &&
+
  patch -Np1 -i ../vim-{{Vim-Version}}-fixes-21.patch &&
 
  echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
 
  echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
 
  echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
 
  echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
Line 95: Line 95:
 
If desired, unpack the translated messages archive:
 
If desired, unpack the translated messages archive:
  
  tar -xf ../vim-7.0-lang.tar.gz --strip-components=1
+
  tar -xf ../vim-{{Vim-Version}}-lang.tar.gz --strip-components=1
  
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../vim-7.0-fixes-16.patch &&
+
  patch -Np1 -i ../vim-{{Vim-Version}}-fixes-21.patch &&
 
  echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
 
  echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
 
  echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
 
  echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&

Revision as of 23:01, 15 December 2006

Download Source: http://ftp.at.vim.org/pub/vim/unix/vim-7.0.tar.bz2
Translated Vim Messages: http://ftp.at.vim.org/pub/vim/extra/vim-7.0-lang.tar.gz
Required Patch: http://svn.cross-lfs.org/svn/repos/patches/vim/vim-7.0-fixes-21.patch

Introduction to Vim

The Vim package, which is an abbreviation for VI IMproved, contains a vi clone with extra features as compared to the original vi.

The default CLFS instructions install vim as a part of the base system. If you would prefer to link vim against X, you should recompile vim to enable GUI mode.

Dependencies

Required

Optional

If you recompile Vim to link against X, and your X libraries are not on the root partition, you will no longer have an editor for use in emergencies. You may choose to install an additional editor, not link Vim against X, or move the current vim executable to the /bin directory under a different name such as vi.

Non-Multilib

If desired, unpack the translated messages archive:

tar -xf ../vim-7.0-lang.tar.gz --strip-components=1

Compile the package:

patch -Np1 -i ../vim-7.0-fixes-21.patch &&
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
./configure --prefix=/usr --with-features=huge &&
make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

If desired, unpack the translated messages archive:

tar -xf ../vim-7.0-lang.tar.gz --strip-components=1

Compile the package:

patch -Np1 -i ../vim-7.0-fixes-21.patch &&
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr --with-features=huge \
    --x-libraries=${XORG_PREFIX}/usr/lib &&
make

Install the package

make install

N32

If desired, unpack the translated messages archive:

tar -xf ../vim-7.0-lang.tar.gz --strip-components=1

Compile the package:

patch -Np1 -i ../vim-7.0-fixes-21.patch &&
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --with-features=huge \
    --x-libraries=${XORG_PREFIX}/usr/lib32 &&
make

Install the package

make install

64Bit

If desired, unpack the translated messages archive:

tar -xf ../vim-7.0-lang.tar.gz --strip-components=1

Compile the package:

patch -Np1 -i ../vim-7.0-fixes-21.patch &&
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr --with-features=huge \
    --x-libraries=${XORG_PREFIX}/usr/lib64 &&
make

Install the package

make install

Contents

Installed Programs: gview, gvim, gvimdiff, rgview, rgvim
Installed Libraries: None
Installed Directory: /usr/share/vim

Short Descriptions

gview starts gvim in read-only mode.
gvim is the editor that runs under X and includes a GUI.
gvimdiff edits two or three versions of a file with gvim and shows the differences.
rgview is a restricted version of gview.
rgvim is a restricted version of gvim.