Vim配置,设置自动完成和列 [英] Vim configuration, setting up autocomplete, and columns

查看:81
本文介绍了Vim配置,设置自动完成和列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 如何为C设置自动完成?我听说它与语言无关。

  2. 在哪里可以找到vim可用的设置列表?

  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?

I通常会发现在编辑时代码通常位于屏幕的左侧。

如何在右侧显示代码的下一个页面左右,将右侧的列视为

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)据我所记得,您通常不需要进行任何设置。尝试键入标识符(或其他任何单词)的开头,然后按 Ctrl + n (仍处于插入模式)。它将弹出可能完成的列表,或者仅列出一个即可完成。此搜索可能匹配的位置是可配置的。尝试使用:help i_ctrl-n 以获得详细信息。默认情况下,它搜索的位置之一是标签文件,您可能需要阅读它,因为这是一个非常有用的功能(:help标签)。

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通过在命令模式下键入:help 提供了非常好的帮助系统。

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

3)我不知道这是否可行,也许其他人可以帮助您。

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

这篇关于Vim配置,设置自动完成和列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆