search

Home  >  Q&A  >  body text

I want to learn vim but don’t know where to start.

First of all, vim has not been installed on my computer, win7 x64, I don’t know the latest version of vim

ringa_leeringa_lee2773 days ago1607

reply all(20)I'll reply

  • 習慣沉默

    習慣沉默2017-05-16 16:39:08

    vimtutor This is enough. The tutorial that comes with vim

    reply
    0
  • 阿神

    阿神2017-05-16 16:39:08

    Actually, I think it’s a good idea to get started with the concise Vim leveling guide; and then use it as much as possible until you get used to it.
    As for the software, if it is Windows, I think it is better to install this Windows Shell: Babun directly. This eliminates some configurations, and then you can mess with gvim after you are familiar with it.

    reply
    0
  • 为情所困

    为情所困2017-05-16 16:39:08

    A few years ago, in order to transplant GacUI (https://github.com/vczh-libraries) to Linux, I installed Ubuntu. In order to familiarize yourself with the environment, you must use XShell to connect to it and open vim to edit the code. In fact, it is very easy to get started. First, find someone to teach you for half an hour, and then just read the documentation that comes with vim. Later, I also built clang-complete, but I heard that it will no longer be maintained. After that, I also learned gdb, so I could port my own code, debug and run unit tests.

    But when there is a graphical interface, clion is better for writing C++ code. Although it is a paid software, as long as you have your own open source project, you can easily apply for an open-source license.

    p.s.
    The first step in learning vim is to know how to use !q and wq to exit (escape), then ordinary text editing and cursor jump, then opening tab and sp, and finally various advanced strings Operations, search and replace, macro recording, etc.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 16:39:08

    In fact, learning vim is very simple. Set the system default text editor to vim, use it to edit text in the future, and then find the vim manual. If you keep using it for a long time, you will naturally become familiar with it.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 16:39:08

    If you use Windows, there is actually no need to learn vim. It is still very fun to use an IDE. If you want to try vim, you can use the vim plug-in of the ide.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 16:39:08

    In fact, I don’t think it is recommended to spend too much time learning vim. After all, it is just a tool. Through my own experience, I think the more efficient way to learn Vim is:

    Step one: Familiarize yourself with hjkl movement in vim, switching between three modes, saving & opening files. Because this way you can perform some basic operations, be sure to delve into this stage. Because the most important thing to become proficient in vim is to train in practice and strengthen the memory of your fingers.

    Step 2: Use a ready-made vim configured by others. Including plug-ins, key optimization, and workflow. Then use it and get used to it. In the process of using it, you will find many problems. For example, how do you remember shortcut keys? How to use the plug-in? Here, you need to spend quite some time getting used to it. You will encounter many problems here, including some basic operations of vim. You will also encounter problems here and learn them.

    For shortcut keys and some operating techniques, don’t forcefully memorize them all, use them one by one and become proficient, because in the end you will find that your fingers are faster than your brain. By then, you may not be able to recite a shortcut combination, but when you put your fingers on the keyboard, they will move unconsciously. So we have to train, train and train again, and strengthen training one by one

    The same goes for plug-ins. If you use someone else’s vim configuration, there may be many plug-ins that you can’t use temporarily. But as you continue to use it, you will discover for yourself: Is this function available? Does that function exist? At this time, you should look for other people's vim documentation, or look at the vimrc file yourself. See if there is a plug-in that implements this function. This process was also explored step by step, plug-in by plug-in. At this time, you already know other people's vim. You can already use it as an important tool in your work.

    Step 3: If you are a fickle person, you may not stop at just using other people’s configuration. Because as you use vim, there are more or less plug-ins that are not included in the vim configuration you are using, or the key configuration you think can be more optimized. At this time you will want to modify this configuration, add your own shortcut keys, plug-ins you need, etc. At this time you will really start to jump into the big pit of vim. You'll figure out which shortcut works best for you, and look for more useful (and interesting) plug-ins. At this stage, you will form your own vim configuration. And we will continue to fine-tune it at work

    Step 4: If you are not satisfied with using other people’s plug-ins, or you cannot find a suitable plug-in for the functions you want. If you have time and energy at this time, maybe you will try to write a vim plug-in yourself. At this time, the pit of vim will be dug deeper and deeper. Congratulations, you can write on your resume: Proficient in using vim (joke)

    But in the end I feel that vim is just a tool, so don’t spend too much time learning it in the early stage. I'm not going to tell you how much time I spend on vim. .

    In addition, this is my own vim configuration. If you are interested, you can take a look: https://github.com/ruanyl/bigvim

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:39:08

    The general one should be vim7.3 vim7.4
    gvim should be used under windows. The version is arbitrary, it is just for practice. There is no difference in the basic shortcut keys 7.x. Most of them are customized vimrc after proficiency.

    Recommend a book "Vim Practical Skills"
    http://book.douban.com/subject/25869486/

    Finally, before using vim, practice typing well. Don’t mess up your fingering, let alone reading the keyboard~

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:39:08

    I recommend you a few tutorials that I think are good: http://coolshell.cn/articles/5426.html; http://blog.jobbole.com/86132/; https://github.com/yangyangwithgnu/use_vim_as_ide ;

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-16 16:39:08

    First, read a book. I recommend "Vim Practical Skills". I have read it for the second time. This book can help you understand what is happening and why!
    The second is to see how others use it, such as:
    /a/1190000004016129
    The third is to go to github to find the most popular configuration methods, learn and experience the plug-in, and see which ones suit you, such as:
    https:// github.com/spf13/spf13-vim

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 16:39:08

    Everyone has said a lot, I would like to add a very practical one, equipped with a non-complete mechanical keyboard. The most important thing is that there should be no arrow keys (cheaper ones such as poker2), which will force you to use hjkl yourself.

    reply
    0
  • Cancelreply