如何有效地使用 Vim:wildmenu [英] How to effectively use Vim: wildmenu

查看:42
本文介绍了如何有效地使用 Vim:wildmenu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Vim 菜单的使用有些困惑.我有 set wildmenuset wildmode=list:longest,full 但我终生不明白如何调用和使用完成功能.

I'm a bit confused about the use of Vim's menus. I have set wildmenu and set wildmode=list:longest,full but I don't understand for the life of me how to invoke and use the completion feature.

这个功能有用吗?为什么以及如何?这究竟是一种什么样的完成?换句话说,是什么决定了完成列表的内容?

Is this feature useful? Why and how? What kind of completion does this do exactly? In other words, what determines the completion list content?

任何提示和示例用法将不胜感激.

Any tips and example usages would be appreciated.

推荐答案

wildmenuwildmode 用于命令行补全.最简单的尝试方法是使用 :color :命令行被垂直扩展",并在 一个水平条,您可以使用 (向前)和 (向后)导航.

wildmenu and wildmode are used for command line completion. The simplest way to try it would be with :color <Tab>: the command line is "expanded" vertically with a list of all the colorschemes available on your machine displayed in columns and an horizontal strip that you can navigate with <Tab> (forward) and <S-Tab> (backward).

命令行补全和wildmenu 的行为依赖于wildmode.

The behaviour of command line completion and wildmenu are dependant on wildmode.

请参阅 :help wildmode:help wildmenu 了解更多详情.

See :help wildmode and :help wildmenu for more details.

这篇关于如何有效地使用 Vim:wildmenu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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