Tôi thích sử dụng tiếng kêu với vim.Cách giảm thời gian tìm kiếm clang_complete thông qua tăng
Một vấn đề mà tôi luôn luôn có là bất cứ khi nào tôi bao gồm tăng cường, clang đi qua thư viện tăng mỗi khi tôi đặt "." sau một tên đối tượng. Phải mất 5-10 giây.
Vì tôi không thực hiện thay đổi để tăng tiêu đề, có cách nào để lưu bộ nhớ cache tìm kiếm thông qua tăng không? Nếu không, có cách nào để loại bỏ tăng từ tìm kiếm tự động hoàn thành không?
cập nhật (1) trong phản ứng để trả lời bởi adaszko sau : hãy g: clang_use_library = 1
- Tôi gõ tên của một biến.
- Tôi nhấn^N. Vim bắt đầu tìm kiếm thông qua cây tăng cường. nó tự động hoàn thành biến.
- tôi nhấn "." và nhận được các lỗi sau đây:
Error detected while processing function ClangComplete: line 35: Traceback (most recent call last): Press ENTER or type command to continue Error detected while processing function ClangComplete: line 35: File "<string>", line 1, in <module> Press ENTER or type command to continue Error detected while processing function ClangComplete: line 35: NameError: name 'vim' is not defined Press ENTER or type command to continue Error detected while processing function ClangComplete: line 40: E121: Undefined variable: l:res Press ENTER or type command to continue Error detected while processing function ClangComplete: line 40: E15: Invalid expression: l:res Press ENTER or type command to continue Error detected while processing function ClangComplete: line 58: E121: Undefined variable: l:res Press ENTER or type command to continue Error detected while processing function ClangComplete: line 58: E15: Invalid expression: l:res Press ENTER or type command to continue
... và không có tính năng tự động compeltion
cập nhật (2) không chắc chắn nếu clang_complete nên chăm sóc của vấn đề với tăng cường. vim mà không cần plugin tìm kiếm thông qua tăng. superuser có answer để nhận xét ra tìm kiếm thông qua dirs tăng với set include=^\\s*#\\s*include\ \\(<boost/\\)\\@!
Giá trị của biến Vim của bạn là gì: gang_use_library? – adaszko
@adaszko ': hãy g: clang_use_library' trả về' g: clang_use_library # 0' –