Vim - 删除自动完成菜单

时间:2016-08-10 16:43:04

标签: vim

我使用SuperTab插件,每次我选择完成时,如果有多种可能性,我的光标下会弹出一个菜单。
我想删除此菜单,我从我的vimrc中删除 byte[] fileContent = document.Contents; using (MemoryStream mem = new MemoryStream()) { mem.Write(fileContent, 0, (int)fileContent.Length); OverrideXLSX(mem, document); } private static byte[] OverrideXLSX(MemoryStream mem, Document document) { byte[] toReturn; using(SpreadsheetDocument sprDoc = SpreadsheetDocument.Open(mem, true)) { foreach(WorksheetPart worksheetPart in sprDoc.WorkbookPart.WorksheetParts) { OverridXmlPart(worksheetPart, document); } mem.Position = 0; toReturn = mem.ToArray(); } return toReturn; } private static void OverridXmlPart(OpenXmlPart xmlPart, Document document) { foreach (IdPartPair part in xmlPart.Parts) OverridXmlPart(part.OpenXmlPart, document); string docText = string.Empty; using(StreamReader sr = new StreamReader(xmlPart.GetStream())) docText = sr.ReadToEnd(); if (docText.StartsWith("<?xml ") && docText.IndexOf("token_", StringComparison.InvariantCultureIgnoreCase) > 0) { docText = OverrideTokens(docText, document); //This is chaning the tokens to the right one in thext using (StreamWriter sw = new StreamWriter(xmlPart.GetStream(FileMode.Create))) sw.Write(docText); } } private string OverrideTokens(string docText, Document document) { return docText.Replace("token_id", document.Id); } 但它不起作用。

这就是我试图摆脱的:

enter image description here

1 个答案:

答案 0 :(得分:3)

您可以使用以下命令删除该菜单:

:set completeopt-=menu
:set completeopt-=menuone

请参阅:help completeopt

但是...

  • 无法查看建议会使很多无用,
  • SuperTab 可能会或可能不会关心这些选项。