找到你要的答案

Q:more about vimrc configuration [closed]

Q:更多关于vimrc配置[关闭]

I am new to Vim and after using it for about 3 days i am in love with it. I used sublime-text before this and i decided to try vim because i heard a lot of people (maybe some) hate and love it. I know that learning Vim require time investment + patience but for the basic shortcut and command I am okay preety smooth but when i reach the .vimrc configuration I start to feel frustrated and 'uhhh'. Overall I like the way how the work-flow goes and in the past 3 days i manage to implement the basic shortcut.

I watched and read a lot of tutorial, and most of it asked us to find "someones .vimrc configuration and use it". I searched at Google 'vim .vimrc', I found 2 links from Github and I am amazed with all the massive lines and I was like 'What! How am i going to understand what each of this line for!' :/ i tried to search all the 'set' and the basic config but i am not happy without knowing what each of the line does. Please if anyone here can help me or explain how the configuration works. I tried the :help and there were about 8000 lines .>< for now i am using the https://github.com/tpope/vim-sensible Vim-Sensible and i am hoping to know how it work. Thanks guys.

For plugin, I think it's fine for now.

使用约3天,我爱上了它在我新的活力和。我用崇高的文本之前,我决定试试Vim因为我听到很多人(也许)的爱与恨它。我知道学习vim需要投入的时间+耐心但基本快捷命令我好漂亮光滑,但是当我到达。vimrc配置我开始感到沮丧和“嗯”。总的来说,我喜欢工作流的方式,在过去的3天里我实现了基本的快捷方式。

我看了和读了很多教程,和它的大部分要求我们找到“vimrc配置和使用它的人。”。我搜索在谷歌vim .vimrc ',我发现从GitHub的2个环节,我很惊讶,所有的大线和我喜欢什么!我怎么能理解这一行的每一个!”:/我试图搜索所有的'设置'和基本配置,但我不高兴,不知道什么每行。如果这里有任何人可以帮助我或解释配置如何工作。我想:帮助约有8000行。>;<;现在我用https://github.com/tpope/vim-sensible VIM明智,我希望知道它是如何工作的。谢谢你们。

对于插件,我认为现在很好。

answer1: 回答1:

What you see in people's posted ~/.vimrc files either is:

  • the result of years of using and tweaking Vim; don't be intimitated, just start out small and it will grow automatically with your continues use (hopefully in a benign way). The mentioned vim-sensible plugin is a good way to start.
  • just copied from colleagues / somewhere on the net without real understanding; this is dangerous and best avoided. Vim "distributions" like spf-13 and Janus lure you with a quick install and out-of-the-box settings, but you pay the price with increased complexity (you need to understand both Vim's runtime loading scheme and the arbitrary conventions of the distribution) and inflexibility (the distribution may make some things easier, but other things very difficult). Vim is incredibly customizable, using someone else's customization makes no sense. Doubly so for canned, ready-made "distributions".

Yes, the built-in :help is large, but you don't need to read it in one go :-) It is excellent, too, and contains most of what you need - for years to come!

This article by Vim's creator explains the philosophy behind Vim very well (there's also a recorded talk): start small, using only basic commands (also taught by vimtutor), and gradually become a master of all kinds of text editing tasks!

你看到人们贴~ / .vimrc文件是:

  • the result of years of using and tweaking Vim; don't be intimitated, just start out small and it will grow automatically with your continues use (hopefully in a benign way). The mentioned vim-sensible plugin is a good way to start.
  • just copied from colleagues / somewhere on the net without real understanding; this is dangerous and best avoided. Vim "distributions" like spf-13 and Janus lure you with a quick install and out-of-the-box settings, but you pay the price with increased complexity (you need to understand both Vim's runtime loading scheme and the arbitrary conventions of the distribution) and inflexibility (the distribution may make some things easier, but other things very difficult). Vim is incredibly customizable, using someone else's customization makes no sense. Doubly so for canned, ready-made "distributions".

是的,内置的:帮助是大的,但你不需要阅读它在一个去::)它是优秀的,也包含了你所需要的大部分-多年来!

本文由Vim的创造者解释背后的理念很好的vim(也有记载说):从小事做起,只使用基本的命令(也教vimtutor),并逐渐成为各种文本编辑任务大师!

vim  vim-plugin