📄 cpp.vim
字号:
" Vim syntax file" Language: C++" Maintainer: Ken Shan <ccshan@post.harvard.edu>" Last change: 2001 May 14" For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600 syntax clearelseif exists("b:current_syntax") finishendif" Read the C syntax to start withif version < 600 so <sfile>:p:h/c.vimelse runtime! syntax/c.vim unlet b:current_syntaxendif" C++ extentionssyn keyword cppStatement new delete this friend usingsyn keyword cppAccess public protected privatesyn keyword cppType inline virtual explicit export bool wchar_tsyn keyword cppExceptions throw try catchsyn keyword cppOperator operator typeidsyn match cppCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*<"me=e-1syn match cppCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"syn keyword cppStorageClass mutablesyn keyword cppStructure class typename template namespacesyn keyword cppNumber NPOSsyn keyword cppBoolean true false" The minimum and maximum operators in GNU C++syn match cppMinMax "[<>]?"" Default highlightingif version >= 508 || !exists("did_cpp_syntax_inits") if version < 508 let did_cpp_syntax_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink cppAccess cppStatement HiLink cppCast cppStatement HiLink cppExceptions cppStatement HiLink cppOperator cppStatement HiLink cppStatement Statement HiLink cppType Type HiLink cppStorageClass StorageClass HiLink cppStructure Structure HiLink cppNumber Number HiLink cppBoolean Boolean delcommand HiLinkendiflet b:current_syntax = "cpp"" vim: ts=8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -