| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 | <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [  <!ENTITY % general-entities SYSTEM "../general.ent">  %general-entities;]><sect1 id="ch-system-vim" xreflabel="Vim" role="wrap"><title>Vim-&vim-version;</title><?dbhtml filename="vim.html"?><indexterm zone="ch-system-vim"><primary sortas="a-Vim">Vim</primary></indexterm><sect2 role="package"><title/><segmentedlist><segtitle>&buildtime;</segtitle><segtitle>&diskspace;</segtitle><seglistitem><seg>0.4 SBU</seg><seg>34 MB</seg></seglistitem></segmentedlist></sect2><sect2 role="installation"><title>Installation of Vim</title><para>Change the default locations of the configuration files:</para><screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.hecho '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h</userinput></screen><para>Now prepare Vim for compilation:</para><screen><userinput>./configure --prefix=/usr --enable-multibyte</userinput></screen><para>Compile the package:</para><screen><userinput>make</userinput></screen><para>To test the results, issue:<userinput>make test</userinput></para><para>Now install the package:</para><screen><userinput>make install</userinput></screen><para>Create a symlink:</para><screen><userinput>ln -s vim /usr/bin/vi</userinput></screen></sect2><sect2 id="conf-vim" role="configuration"><title>Configuring Vim</title><para>Create a default vim configuration file by runningthe following:</para><screen><userinput>cat > /etc/vimrc << "EOF"" Begin /etc/vimrcset nocompatibleset backspace=2syntax on<!-- set fileencodings=ucs-bom,utf-8,<replaceable>[your-8-bit-charset]</replaceable> -->if (&term == "iterm") || (&term == "putty")  set background=darkendif" End /etc/vimrcEOF</userinput></screen><!-- XXX: the ascii-only files are considered to be in utf-8 - that's not whatone expects . That's why fileencodings stuff is commented out for nowThe <parameter>set fileencodings=...</parameter> makes<command>vim</command> capable of automatically detecting the characterset of the file being edited (replace"<replaceable>[your-8-bit-charset]</replaceable>"with the value appropriate for your country, e.g. iso-8859-15 in Italy).This line is useful because bleeding-edge distributionslike Fedora Core use UTF-8, and conservative ones like Debianuse traditional 8-bit encodings for text files. If you have notpassed the <parameter>- -enable-multibyte</parameter> switch to the<command>./configure</command> command above, this line will not work. --><para>Documentation for other available options can be obtained by runningthe following command:</para><screen><userinput>vim -c ':options'</userinput></screen></sect2><sect2 id="contents-vim" role="content"><title>Contents of Vim</title><para>See testing</para></sect2></sect1>
 |