0

Vim でコード補完が必要です。このチュートリアルを使用して試してみます: http://design.liberta.co.za/articles/code-completion-intellisense-for-cpp-in-vim-with-omnicppcomplete/

私の問題:

このターミナルプロンプトは、ディレクトリに「タグ」ファイルを生成する必要がありますが、フラグが正しくないようです?

$ ctags -R --c++-kinds=+p --fields=+iaS --extra=+q ./

これを端末で使用すると、これが得られます。

usage: ctags [flags] filenames...
    -Dword  Ignore "word" -- handy for parameter macro name
    -F      Use /regexp/ (default)
    -B      Use ?regexp? instead of /regexp/
    -N      Use line numbers instead of /regexp/
    -g      Store static tags as though they were global (implies -h -s)
    -s      Include static tags
    -e      Include extern tags
    -i      Include inline definitions
    -t      Include typedefs
    -v      Include variable declarations
    -h      Add hints to help elvis distinguish between overloaded tags
    -l      Add a "ln" line number hint (implies -h)
    -p      Write parse info to stdout (for debugging ctags)
    -d      Warn about duplicates, on stdout
    -x      Write cross-reference table to stdout; skip "tags"
    -r      Write a "refs" file, in addition to "tags"
    -a      Append to "tags", instead of overwriting
If no flags are given, ctags assumes it should use -l -i -s -t -v
Report bugs to kirkenda@cs.pdx.edu

私はsthを作りますか。違う?これは私が読んだ2番目のチュートリアルであり、このステップでは常に失敗しています。

よろしくお願いします

4

1 に答える 1

2

ctagsが熱狂しているようには見えません。インストールする必要があります。

ctags --help出力は次のようなもので始まる必要があります

Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: May 22 2012, 13:52:32
  Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex
于 2013-08-01T17:58:42.823 に答える