Vim configuration, setting up autocomplete, and columns

喜你入骨 提交于 2019-12-12 18:21:43

问题


  1. How do I set up auto-completion for C? I've heard it's language agnostic. How does this work?
  2. Where can I find a list of settings available for vim?

  3. I often find that code is usually occupying the left side of my screen when editing.
    How can I have the next "page" or so of code displayed on the right side, treating the column on the right side as just an extension what's on the left side, with the two scrolling together nicely?


回答1:


1) You usually don't need to set anything up, as far as I can recall. Try typing the beginning of an identifier (or any other word) and hitting Ctrl+n (still in insert mode). It will pop up a list of possible completions, or just complete it if there is only one. The places this searches for possible matches are configurable. Try :help i_ctrl-n for details. One of the places it searches by default is the tags file, which you may want to read up on, as that's a very useful feature (:help tags).

2) Vim has a very good help system available by typing :help in command mode.

3) I don't know if this is possible, perhaps someone else can help you with it.



来源:https://stackoverflow.com/questions/2588706/vim-configuration-setting-up-autocomplete-and-columns

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!