Skip to contentSkip to conversation

Enable code completion in VIM

PATCH Applied Mathieu Maret 1 participant 1 message Aug 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable code completion in VIM

Vim, with the omnicppcomplete(#1) plugin,
can do code completion using information build by ctags. Add flags needed by omnicppcomplete(#2) to have completion on member of structure.

1: https://github.com/vim-scripts/omnicppcomplete
2: https://github.com/vim-scripts/OmniCppComplete/blob/master/doc/omnicppcomplete.txt#L93

---
 scripts/tags.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/tags.sh +2 -1
index ed7eef2..e37af37 100755
@@ -264,7 +264,8 @@ exuberant()
 	-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL   \
 	-I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
 	-I static,const						\
-	--extra=+f --c-kinds=+px --langmap=c:+.h "${regex[@]}"
+	--extra=+fq --c-kinds=+px --fields=+iaS --langmap=c:+.h \
+	"${regex[@]}"
 
 	setup_regex exuberant kconfig
 	all_kconfigs | xargs $1 -a                              \
Signature · 1 line
2.9.3