注:我觉得vimtutor是众多vim帮助文档中最好的入门教程,其中的每一个知识点都有相应
    的习题,可以让你在短时间内掌握基本的VIM操作。
    本双语版是我练习翻译之作,对于其中出现的任何词义、语法等等的错误还还请大家
    指正。
    因为我的是英文环境,没有中文版的,不知道大家的vimtutor_cn是多少版本的,如
    果有新版的话希望能共享一下。
    EMAIL:ahui132@qq
    hi.csdn/ahui132811
  请通过vim练习:vim
===============================================================================vim命令进入编辑模式
=    W e l c o m e  t o  t h e  V I M  T u t o r    -    Version 1.7      =
    欢迎使用VIM教程 1.7版
===============================================================================
    Vim is a very powerful editor that has many commands, too many to
    explain in a tutor such as this.  This tutor is designed to describe
    enough of the commands that you will be able to easily use Vim as
    an all-purpose editor.
    VIM是一个强大的编辑器,它拥有大量的命令,所以没法在本教程中全部解释。本
    教程描述了足够多的命令,使你能轻松将VIM作为通用编辑器。
    The approximate time required to complete the tutor is 25-30 minutes,
    depending upon how much time is spent with experimentation.
    完成本教程的时间大约是25-30分钟,主要依赖于你在实验中花去的时间。
    ATTENTION:
    The commands in the lessons will modify the text.  Make a copy of this
    file to practise on (if you started "vimtutor" this is already a copy).
    注意:
    本课程中的命令会改变本文,请创建一个副本来练习(如果你用命令“vimtutor"
    开始,本文已经是一个副本了)。
    译者注:创建副本的命令为:
        vim -u NONE -c 'e $VIMRUNTIME/tutor/tutor' -c 'w! vimtutor_copy' -c 'q';ls -l
    It is important to remember that this tutor is set up to teach by
    use.  That means that you need to execute the commands to learn them
    properly.  If you only read the text, you will forget the commands!
    重要是要记住,本教程是用于指导VIM的使用。这意味着你需要执行命令以
    以正确地学习它们。如果你只是阅读文本,你会很快忘记这些命令!
    Now, make sure that your Shift-Lock key is NOT depressed and press
    the  j  key enough times to move the cursor so that Lesson 1.1
    completely fills the screen.
    现在,请确保你的shift键是启用的,按 j 键多次移动到1.1课并使之
    完全占据屏幕
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Lesson 1.1:  MOVING THE CURSOR
            1.1课:移动光标
  ** To move the cursor, press the h,j,k,l keys as indicated. **
    **要移动光标,则按示意按下 h,j,k,l 键。**
        ^
        k            Hint:  The h key is at the left and moves left.
      < h    l >          The l key is at the right and moves right.
        j              The j key looks like a down arrow.
        v
    示意:    左边的h键是往左移
        右边的l键是往右移
        j键是往下移
  1. Move the cursor around the screen until you are comfortable.
    1. 在屏幕中移动光标到你觉得合适的地方。
  2. Hold down the down key (j) until it repeats.
    Now you know how to move to the next lesson.
    2. 按住j键,使之重复作用。
      现在你知道了怎么移动到下一节了吧。
  3. Using the down key, move to Lesson 1.2.
  3. 使用下移键,移动到1.2节。
NOTE: If you are ever unsure about something you typed, press <ESC> to place
      you in Normal mode.  Then retype the command you wanted.
注意:如意你不确定你按下了什么,按<ESC>回到正常模式。再按你想要输入的命令。
NOTE: The cursor keys should also work.  But using hjkl you will be able to
      move around much faster, once you get used to it.  Really!
注意:光标键同样生效。但hjkl键会使你移动得更快,只要你熟悉了它。真的!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                Lesson 1.2: EXITING VIM
                1。2节:退出VIM
  !! NOTE: Before executing any of the steps below, read this entire lesson!!
  !! 注:执行以下步骤前,请读完全节!!
  1. Press the <ESC> key (to make sure you are in Normal mode).
  1. 按下<ESC>键(确保你处于正常模式)。
  2. Type:    :q! <ENTER>.
    This exits the editor, DISCARDING any changes you have made.
  2. 按:    :q! <ENTER>.
    此命令使编辑器退出并放弃你作的作用改动。(即不保存对文本的编辑)
  3. When you see the shell prompt, type the command that got you into this
    tutor.  That would be:    vimtutor <ENTER>
  3. 当你看见shell提示时,输入以下命令并进入本教程:vimtutor<ENTER>
    译者注:事实上你vimtutor是打开一个副本,你也可以打开你之前创建的副本:
        vim vimtutor_copy
  4. If you have these steps memorized and are confident, execute steps
    1 through 3 to exit and re-enter the editor.
  4. 如果你已经记住的这些步骤并有信心了,就执行步骤1-3退出,然后再进入编辑器。
NOTE:  :q! <ENTER>  discards any changes you made.  In a few lessons you
      will learn how to save the changes to a file.
注:q!<enter> 会取消你对文本所作的任何改动。在新的一节你会学到保存文件的修改。
  5. Move the cursor down to Lesson 1.3.
  5. 移动光标到1.3节。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Lesson 1.3: TEXT EDITING - DELETION
            1.3节:文本编辑之删除
      ** Press  x  to delete the character under the cursor. **
        **按下x键以删除光标所在的字符.**

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。