{"id":13611976,"url":"https://github.com/octol/vim-cpp-enhanced-highlight","last_synced_at":"2025-04-13T10:07:35.734Z","repository":{"id":53740518,"uuid":"10127224","full_name":"octol/vim-cpp-enhanced-highlight","owner":"octol","description":"Additional Vim syntax highlighting for C++ (including C++11/14/17)","archived":false,"fork":false,"pushed_at":"2023-02-03T18:31:47.000Z","size":116,"stargazers_count":1068,"open_issues_count":32,"forks_count":152,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-06T06:06:23.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-17T16:13:05.000Z","updated_at":"2025-03-24T01:52:07.000Z","dependencies_parsed_at":"2023-02-18T09:50:17.560Z","dependency_job_id":null,"html_url":"https://github.com/octol/vim-cpp-enhanced-highlight","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octol%2Fvim-cpp-enhanced-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octol%2Fvim-cpp-enhanced-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octol%2Fvim-cpp-enhanced-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octol%2Fvim-cpp-enhanced-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octol","download_url":"https://codeload.github.com/octol/vim-cpp-enhanced-highlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695446,"owners_count":21146955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:00:20.285Z","updated_at":"2025-04-13T10:07:35.714Z","avatar_url":"https://github.com/octol.png","language":"Vim script","funding_links":[],"categories":["Vim Script","Plugins / Themes / Dependencies"],"sub_categories":[],"readme":"vim.cpp - additional vim c++ syntax highlighting\n------------------------------------------------\n\nThis file contains additional syntax highlighting that I use for C++11/14/17\ndevelopment in Vim. Compared to the standard syntax highlighting for C++ it\nadds highlighting of (user defined) functions and the containers and types in\nthe standard library / boost.\n\nDevelopment is done at: http://github.com/octol/vim-cpp-enhanced-highlight\n\n![Screenshot](http://www.haeggblad.com/vim/screenshot.png)\n\nOptional features\n-----------------\n\nHighlighting of class scope is disabled by default. To enable set\n```vim\nlet g:cpp_class_scope_highlight = 1\n```\n\nHighlighting of member variables is disabled by default. To enable set\n```vim\nlet g:cpp_member_variable_highlight = 1\n```\n\nHighlighting of class names in declarations is disabled by default. To enable set\n```vim\nlet g:cpp_class_decl_highlight = 1\n```\n\nHighlighting of POSIX functions is disabled by default. To enable set\n```vim\nlet g:cpp_posix_standard = 1\n```\n\nThere are two ways to highlight template functions. Either\n```vim\nlet g:cpp_experimental_simple_template_highlight = 1\n```\nwhich works in most cases, but can be a little slow on large files.\nAlternatively set\n```vim\nlet g:cpp_experimental_template_highlight = 1\n```\nwhich is a faster implementation but has some corner cases where it doesn't\nwork.\n\n_Note: C++ template syntax is notoriously difficult to parse, so don't expect\nthis feature to be perfect._\n\nHighlighting of library concepts is enabled by\n```vim\nlet g:cpp_concepts_highlight = 1\n```\nThis will highlight the keywords `concept` and `requires` as well as all named\nrequirements (like `DefaultConstructible`) in the standard library.\n\nHighlighting of user defined functions can be disabled by\n```vim\nlet g:cpp_no_function_highlight = 1\n```\n\nInstallation instructions\n-------------------------\nFollow one of the sets of directions below and reload vim afterwards.\n\n#### Vundle\nInstall using [vundle](https://github.com/gmarik/Vundle.vim) by adding\n```vim\nPlugin 'octol/vim-cpp-enhanced-highlight'\n```\nto .vimrc and run `:PluginInstall`.\n\n\n#### Git submodule + Pathogen\nIf you have [pathogen](https://github.com/tpope/vim-pathogen) installed,\nand you prefer to use git submodules, run\n```sh\ncd ~/.vim\ngit submodule add https://github.com/octol/vim-cpp-enhanced-highlight.git bundle/syntax/\n```\n\n#### Manual installation\nIf you don't have either Vundle or Pathogen installed, copy the cpp.vim file\n(optionally also c.vim) to .vim/after/syntax.\n```sh\ngit clone https://github.com/octol/vim-cpp-enhanced-highlight.git /tmp/vim-cpp-enhanced-highlight\nmkdir -p ~/.vim/after/syntax/\nmv /tmp/vim-cpp-enhanced-highlight/after/syntax/cpp.vim ~/.vim/after/syntax/cpp.vim\nrm -rf /tmp/vim-cpp-enhanced-highlight\n```\n\nIssues\n------\n\nVim tend to a have issues with flagging braces as errors, see for example\nhttps://github.com/vim-jp/vim-cpp/issues/16. A workaround is to set\n```vim\nlet c_no_curly_error=1\n```\n\nBackground information\n----------------------\n\n- http://stackoverflow.com/questions/736701/class-function-names-highlighting-in-vim\n- http://www.vim.org/scripts/script.php?script_id=4293\n- http://www.vim.org/scripts/script.php?script_id=2224\n- http://www.vim.org/scripts/script.php?script_id=1640\n- http://www.vim.org/scripts/script.php?script_id=3064\n\nJon Haggblad \u003cjon@haeggblad.com\u003e\n\nLast update: 19 October 2016\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctol%2Fvim-cpp-enhanced-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctol%2Fvim-cpp-enhanced-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctol%2Fvim-cpp-enhanced-highlight/lists"}