summaryrefslogtreecommitdiff
path: root/utils/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'utils/vim/vimrc')
-rw-r--r--utils/vim/vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/vim/vimrc b/utils/vim/vimrc
index 8191584f2e1..6f6441b9133 100644
--- a/utils/vim/vimrc
+++ b/utils/vim/vimrc
@@ -155,6 +155,13 @@ function! ClangComplete(findstart, base)
let l:value = l:value[:l:spacecolonspace-1]
endif
+ " Chop off " (Hidden)", if present, and move it to the menu.
+ let l:hidden = stridx(l:value, " (Hidden)")
+ if l:hidden != -1
+ let l:menu .= " (Hidden)"
+ let l:value = l:value[:l:hidden-1]
+ endif
+
" Handle Pattern. TODO: Make clang less weird.
if l:value == "Pattern"
let l:value = l:menu