拡張子cの新しいファイルを作成すると、処理エラーが発生します。私は他のマシンでClionを使用していましたが、考えを与えた後、私は他の言語のほとんどが動作するvimに移動することにしました。CとC++のVim設定?
Cとプラグインの私のドットファイルは?
エラー:これらのエラーを解決したいと思います。
Error detected while processing /Users/frrank/.vim/bundle/lh-cpp/ftplugin/c/c_menu.vim:
line 43:
E117: Unknown function: lh#option#get
E15: Invalid expression: lh#option#get('c_menu_priority', '50', 'g')
line 44:
E117: Unknown function: lh#option#get
E15: Invalid expression: lh#option#get('c_menu_name', '&C++', 'g')
line 66:
E121: Undefined variable: s:menu_prio
E15: Invalid expression: 'amenu <silent> '.s:menu_prio.'.100 '.escape(s:menu_name.'.-100-', '\ '). ' <Nop>'
line 69:
E121: Undefined variable: s:menu_prio
E15: Invalid expression: 'amenu <silent> '.s:menu_prio.'.100.1 '. escape(s:menu_name.'.&Help.&Contents', '\ '). ' :help lh-cpp-readme.txt<cr>'
line 72:
E121: Undefined variable: s:menu_prio
E15: Invalid expression: 'amenu <silent> '.s:menu_prio.'.100.2 '. escape(s:menu_name.'.&Help.&Features', '\ '). ' :help lh-cpp-features<cr>'
line 75:
E121: Undefined variable: s:menu_prio
E15: Invalid expression: 'amenu <silent> '.s:menu_prio.'.100.3 '. escape(s:menu_name.'.&Help.&First Steps', '\ '). ' :help lh-cpp-first-steps<cr>'
line 79:
E121: Undefined variable: s:menu_prio
E15: Invalid expression: 'amenu <silent> '.s:menu_prio.'.100.20.10 '. escape(s:menu_name.'.&Help.Code &snippets.&Brackets', '\ '). ' :help brackets-for-C<cr>'
line 82:
E121: Undefined variable: s:menu_prio
E15: Invalid expression: 'amenu <silent> '.s:menu_prio.'.100.20.20 '. escape(s:menu_name.'.&Help.Code &snippets.&C snippets', '\ '). ' :help C_control-statements<cr>'
Error detected while processing /Users/frrank/.vim/bundle/lh-cpp/ftplugin/c/c_pvs-2-qf.vim:
Error detected while processing /Users/frrank/.vim/bundle/lh-cpp/ftplugin/c/c_snippets.vim:
line 65:
E492: Not an editor command: :Brackets #if\ 0 #endif -insert=0 -nl -trigger=<localleader>0
line 68:
E492: Not an editor command: :Brackets #if\ 0 #else!mark!\n#endif -insert=0 -nl -trigger=<localleader>1
line 81:
E492: Not an editor command: Inoreabbr <buffer> <silent> if <C-R>=lh#cpp#snippets#def_abbr('if ', '\<c-f\>if(!cursorhere!){!mark!}!mark!')<cr>
line 95:
E492: Not an editor command: Inoreabbr <buffer> <silent> elif <C-R>=lh#cpp#snippets#def_abbr('elif ', '\<c-f\>else if(!cursorhere!) {!mark!}!mark!')<cr>
line 109:
E492: Not an editor command: Inoreabbr <buffer> <silent> else <C-R>=lh#cpp#snippets#insert_if_not_before('else ', '\<c-f\>else{!cursorhere!}!mark!', 'if')<cr><c-f>
line 123:
E492: Not an editor command: Inoreabbr <buffer> <silent> for <C-R>=lh#cpp#snippets#def_abbr('for ', { '! lh#cpp#use_cpp11()': '\<c-f\>for(!cursorhere!;!mark!;!mark!){!mark!}!mark!
', ' lh#cpp#use_cpp11()': '\<c-f\>for(!cursorhere!){!mark!}!mark!' })<cr>
line 133:
E492: Not an editor command: Inoreabbr <buffer> <silent> while <C-R>=lh#cpp#snippets#def_abbr('while ', '\<c-f\>while(!cursorhere!){!mark!}!mark!')<cr>
line 152:
E492: Not an editor command: Inoreabbr <buffer> <silent> do <C-R>=lh#cpp#snippets#def_abbr('do ', '\<c-f\>do{!cursorhere!}while(!mark!);!mark!')<cr><c-f>
line 179:
E492: Not an editor command: Inoreabbr <buffer> <silent> switch <C-R>=lh#cpp#snippets#def_abbr('switch ', '\<c-f\>switch(!cursorhere!){!mark!}!mark!')<cr>
line 202:
E492: Not an editor command: Brackets /* */ -visual=0
line 203:
E492: Not an editor command: Brackets /* */ -visual=0 -trigger=<kDivide><kMultiply>
line 205:
E492: Not an editor command: Brackets /* */ -insert=0 -trigger=<m-v>
Error detected while processing /Users/frrank/.vim/bundle/lh-cpp/ftplugin/c/previewWord.vim:
line 46:
E117: Unknown function: lh#mapping#plug
line 50:
E117: Unknown function: lh#mapping#plug
line 64:
E117: Unknown function: lh#menu#def_toggle_item
line 66:
E117: Unknown function: lh#mapping#plug
質問は何ですか? –
明らかではないこれらのエラーを解決したいです。しかし、私は質問を更新してくれてありがとう。 – Frrank
この質問は、C言語またはC++言語*には関係ありません。タグが削除されました。 – StoryTeller