CppSyntaxCheck
a vim plugin of cpp syntax check, using g++ as parser
Install / Use
/learn @phonzia/CppSyntaxCheckREADME
#cppSyntaxCheck
Introduction
This a script use g++ as a parser to check the syntax of cpp source code, and show where the errors and warnings are. Installion is in a easy way and everytime you save the file, syntax errors and warnings are showed.
See the install details for install guide, if you find any bugs or method to make it better, please contact me using e-mail: phonzia@gmail.com
Install details
Put the script cppSyntaxCheck.vim in folder ~/.vim/plugin, Make sure your compiler has been installed then it works
You can add statements below in order to adjust to your environment
let g:include_path=":../include:./include:./tinyxml"
let g:compile_flag="-D_LINUX_"
let g:cpp_compiler="/usr/bin/g++"
let g:enable_warning=1
let g:cpp_compiler="LANG=C g++ -Wall"
Key binding:
- <Leader>s go to next signed error or warning line
- <Leader>p show complete error message, very useful when error message is too long to be displayed
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
