From: Mathieu Maret <mathieu.maret@gmail.com>
To: mmarek@suse.com, mpe@ellerman.id.au, akpm@linux-foundation.org,
naveen.n.rao@linux.vnet.ibm.com, vdavydov@virtuozzo.com,
linux-kernel@vger.kernel.org
Cc: Mathieu Maret <mathieu.maret@gmail.com>
Subject: [PATCH] Enable code completion in VIM
Date: Tue, 30 Aug 2016 21:15:46 +0200 [thread overview]
Message-ID: <20160830191546.4469-1-mathieu.maret@gmail.com> (raw)
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
Signed-off-by: Mathieu Maret <mathieu.maret@gmail.com>
---
scripts/tags.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index ed7eef2..e37af37 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -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 \
--
2.9.3
reply other threads:[~2016-08-30 19:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160830191546.4469-1-mathieu.maret@gmail.com \
--to=mathieu.maret@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.com \
--cc=mpe@ellerman.id.au \
--cc=naveen.n.rao@linux.vnet.ibm.com \
--cc=vdavydov@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox