| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507 | # SOME DESCRIPTIVE TITLE# Copyright (C) YEAR Free Software Foundation, Inc.# This file is distributed under the same license as the PACKAGE package.# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.##, fuzzymsgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""POT-Creation-Date: 2020-06-17 12:44+0800\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""Language: \n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. type: Content of: <sect1><sect1info><address>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:14#, no-wrapmsgid "&vim-url;"msgstr ""#. type: Content of: <sect1><sect1info>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:12msgid """<productname>vim</productname> <productnumber>&vim-version;</productnumber> ""<placeholder type=\"address\" id=\"0\"/>"msgstr ""#. type: Content of: <sect1><title>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:17msgid "Vim-&vim-version;"msgstr ""#. type: Content of: <sect1><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:20msgid "Vim"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:26msgid "The Vim package contains a powerful text editor."msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><segtitle>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:29msgid "&buildtime;"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><segtitle>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:30msgid "&diskspace;"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:33msgid "&vim-fin-sbu;"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:34msgid "&vim-fin-du;"msgstr ""#. type: Content of: <sect1><sect2><tip><title>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:39msgid "Alternatives to Vim"msgstr ""#. type: Content of: <sect1><sect2><tip><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:41msgid """If you prefer another editor—such as Emacs, Joe, or Nano—please ""refer to <ulink url=\"&blfs-book;postlfs/editors.html\"/> for suggested ""installation instructions."msgstr ""#. type: Content of: <sect1><sect2><title>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:50msgid "Installation of Vim"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:52msgid """First, change the default location of the <filename>vimrc</filename> ""configuration file to <filename class=\"directory\">/etc</filename>:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:55#, no-wrapmsgid """<userinput remap=\"pre\">echo '#define SYS_VIMRC_FILE \"/etc/vimrc\"' "">> src/feature.h</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:57msgid "Prepare vim for compilation:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:59#, no-wrapmsgid "<userinput remap=\"configure\">./configure --prefix=/usr</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:61msgid "Compile the package:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:63#, no-wrapmsgid "<userinput remap=\"make\">make</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:65msgid """To prepare the tests, ensure that user <systemitem ""class=\"username\">tester</systemitem> can write to the source tree:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:69#, no-wrapmsgid "<userinput remap=\"test\">chown -Rv tester .</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:71msgid """Now run the tests as user <systemitem ""class=\"username\">tester</systemitem>:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:74#, no-wrapmsgid """<userinput remap=\"test\">su tester -c \"LANG=en_US.UTF-8 make -j1 test\" ""&> vim-test.log</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:76msgid """The test suite outputs a lot of binary data to the screen.  This can cause ""issues with the settings of the current terminal.  The problem can be ""avoided by redirecting the output to a log file as shown above.  A ""successful test will result in the words \"ALL DONE\" in the log file at ""completion."msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:82msgid "Install the package:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:84#, no-wrapmsgid "<userinput remap=\"install\">make install</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:86msgid """Many users are used to using <command>vi</command> instead of ""<command>vim</command>. To allow execution of <command>vim</command> when ""users habitually enter <command>vi</command>, create a symlink for both the ""binary and the man page in the provided languages:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:92#, no-wrapmsgid """<userinput remap=\"install\">ln -sv vim /usr/bin/vi\n""for L in  /usr/share/man/{,*/}man1/vim.1; do\n""    ln -sv vim.1 $(dirname $L)/vi.1\n""done</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:97msgid """By default, vim's documentation is installed in <filename ""class=\"directory\">/usr/share/vim</filename>. The following symlink allows ""the documentation to be accessed via <filename ""class=\"directory\">/usr/share/doc/vim-&vim-version;</filename>, making it ""consistent with the location of documentation for other packages:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:103#, no-wrapmsgid """<userinput remap=\"install\">ln -sv ../&vim-docdir;/doc ""/usr/share/doc/vim-&vim-version;</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:105msgid """If an X Window System is going to be installed on the LFS system, it may be ""necessary to recompile vim after installing X. Vim comes with a GUI version ""of the editor that requires X and some additional libraries to be ""installed. For more information on this process, refer to the vim ""documentation and the vim installation page in the BLFS book at <ulink ""url=\"&blfs-book;postlfs/vim.html\"/>."msgstr ""#. type: Content of: <sect1><sect2><title>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:116msgid "Configuring Vim"msgstr ""#. type: Content of: <sect1><sect2><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:119msgid "/etc/vimrc"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:122msgid """By default, <command>vim</command> runs in vi-incompatible mode.  This may ""be new to users who have used other editors in the past. The ""<quote>nocompatible</quote> setting is included below to highlight the fact ""that a new behavior is being used. It also reminds those who would change to ""<quote>compatible</quote> mode that it should be the first setting in the ""configuration file. This is necessary because it changes other settings, and ""overrides must come after this setting. Create a default ""<command>vim</command> configuration file by running the following:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:131#, no-wrapmsgid """<userinput>cat > /etc/vimrc << \"EOF\"\n""<literal>\" Begin /etc/vimrc\n""\n""\" Ensure defaults are set before customizing settings, not after\n""source $VIMRUNTIME/defaults.vim\n""let skip_defaults_vim=1 \n""\n""set nocompatible\n""set backspace=2\n""set mouse=\n""syntax on\n""if (&term == \"xterm\") || (&term == \"putty\")\n""  set background=dark\n""endif\n""\n""\" End /etc/vimrc</literal>\n""EOF</userinput>"msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:149msgid """The <parameter>set nocompatible</parameter> setting makes ""<command>vim</command> behave in a more useful way (the default) than the ""vi-compatible manner. Remove the <quote>no</quote> to keep the old ""<command>vi</command> behavior. The <parameter>set backspace=2</parameter> ""setting allows backspacing over line breaks, autoindents, and the start of ""an insert. The <parameter>syntax on</parameter> parameter enables vim's ""syntax highlighting.  The <parameter>set mouse=</parameter> setting enables ""proper pasting of text with the mouse when working in chroot or over a ""remote connection.  Finally, the <emphasis>if</emphasis> statement with the ""<parameter>set background=dark</parameter> setting corrects ""<command>vim</command>'s guess about the background color of some terminal ""emulators. This gives the highlighting a better color scheme for use on the ""black background of these programs."msgstr ""#. type: Content of: <sect1><sect2><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:163msgid """Documentation for other available options can be obtained by running the ""following command:"msgstr ""#. type: Content of: <sect1><sect2><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:166#, no-wrapmsgid "<userinput>vim -c ':options'</userinput>"msgstr ""#. type: Content of: <sect1><sect2><note><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:169msgid """By default, vim only installs spell files for the English language.  To ""install spell files for your preferred language, download the ""<filename>*.spl</filename> and optionally, the <filename>*.sug</filename> ""files for your language and character encoding from <ulink ""url=\"ftp://ftp.vim.org/pub/vim/runtime/spell/\"/> and save them to ""<filename class='directory'>/usr/share/&vim-docdir;/spell/</filename>."msgstr ""#. type: Content of: <sect1><sect2><note><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:176msgid """To use these spell files, some configuration in ""<filename>/etc/vimrc</filename> is needed, e.g.:"msgstr ""#. type: Content of: <sect1><sect2><note><screen>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:179#, no-wrapmsgid """<literal>set spelllang=en,ru\n""set spell</literal>"msgstr ""#. type: Content of: <sect1><sect2><note><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:182msgid """For more information, see the appropriate README file located at the URL ""above."msgstr ""#. type: Content of: <sect1><sect2><title>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:189msgid "Contents of Vim"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><segtitle>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:192msgid "Installed programs"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><segtitle>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:193msgid "Installed directory"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:196msgid """ex (link to vim), rview (link to vim), rvim (link to vim), vi (link to vim), ""view (link to vim), vim, vimdiff (link to vim), vimtutor, and xxd"msgstr ""#. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:199msgid "/usr/share/vim"msgstr ""#. type: Content of: <sect1><sect2><variablelist><bridgehead>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:204msgid "Short Descriptions"msgstr ""#. type: Content of: <sect1><sect2><variablelist>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:205msgid "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:209msgid "<command>ex</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:211msgid "Starts <command>vim</command> in ex mode"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:213msgid "ex"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:219msgid "<command>rview</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:221msgid """Is a restricted version of <command>view</command>; no shell commands can be ""started and <command>view</command> cannot be suspended"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:225msgid "rview"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:231msgid "<command>rvim</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:233msgid """Is a restricted version of <command>vim</command>; no shell commands can be ""started and <command>vim</command> cannot be suspended"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:237msgid "rvim"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:243msgid "<command>vi</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:245msgid "Link to <command>vim</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:247msgid "vi"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:253msgid "<command>view</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:255msgid "Starts <command>vim</command> in read-only mode"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:257msgid "view"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:263msgid "<command>vim</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:265msgid "Is the editor"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:267msgid "vim"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:273msgid "<command>vimdiff</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:275msgid """Edits two or three versions of a file with <command>vim</command> and shows ""differences"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:278msgid "vimdiff"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:284msgid "<command>vimtutor</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:286msgid "Teaches the basic keys and commands of <command>vim</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:289msgid "vimtutor"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><term>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:295msgid "<command>xxd</command>"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:297msgid """Creates a hex dump of the given file; it can also do the reverse, so it can ""be used for binary patching"msgstr ""#. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>#: /home/xry111/svn-repos/LFS-BOOK/chapter08/vim.xml:300msgid "xxd"msgstr ""
 |