Vim 配置、设置自动完成和列

发布于 2024-08-27 21:30:37 字数 179 浏览 3 评论 0原文

  1. 如何为 C 设置自动完成?我听说它与语言无关。这是如何运作的?
  2. 在哪里可以找到可用于 vim 的设置列表?

  3. 我经常发现编辑时代码通常占据屏幕的左侧。
    如何让下一个“页面”左右的代码显示在右侧,将右侧的列视为左侧的扩展,并且两者很好地一起滚动?

  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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〃安静 2024-09-03 21:30:37

1)据我记得,您通常不需要进行任何设置。尝试输入标识符(或任何其他单词)的开头并按 Ctrl+n(仍处于插入模式)。它将弹出一个可能完成的列表,或者如果只有一个则完成它。搜索可能匹配的位置是可配置的。尝试 :help i_ctrl-n 了解详细信息。它默认搜索的位置之一是标签文件,您可能需要阅读该文件,因为这是一个非常有用的功能(:help Tags)。

2) Vim 有一个非常好的帮助系统,可以通过在命令模式下输入 :help 来使用。

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文