Code Monkey home page Code Monkey logo

vim-cpp-modern's People

Contributors

bfrg avatar garzet avatar shauncox avatar toruniina avatar ytian81 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-cpp-modern's Issues

Add an option to disable highlighting of functions

Love the script, fixes the issues I was having with collisions in local variable names and user-defined types I was getting with vim-cpp-enhanced-highlight (because of additional highlighting I didn't want to use anyways).

Coming over from vim-cpp-enhanced-highlight I noticed I was missing the ability to disable highlighting of (user-defined) functions. It was pretty easy to bring back, perhaps others like that option as well. Since you stripped out the STL functions, it would obviously disable highlighting of all functions in vim-cpp-modern.

c.vim

" Highlight function names
if !exists('g:cpp_no_function_highlight')
    syn match    cCustomParen    transparent "(" contains=cParen contains=cCppParen
    syn match    cCustomFunc     "\w\+\s*(\@=" contains=cCustomParen
endif

cpp.vim

" Highlight function names
if !exists('g:cpp_no_function_highlight')
    syn match   cCustomParen    transparent "(" contains=cParen contains=cCppParen
    syn match   cCustomFunc     "\w\+\s*(\@="
endif

.vimrc
let g:cpp_no_function_highlight = 1

Hightlighting custom types that have the `_t` postfix

It would be nice to have this feature where custom types like mytype_t could be highlighted. This is a common pattern in C and helps easily identify non-built in types.

typedef struct {
	...
} custom_t;

int
myfunc(custom_t* a)
{
	...
}

Is it possible to have this feature with this package? I am willing to help where I can, although i'm not experienced with vimscript.

adding modules related keywords

hi is possible.
maybe it might sound stupid but is it possible to add modulessupport like keywords import export.
Will this also make clangd recognize those as well ?
salim

Licensing

I would like to make use of these syntax files at work, but to bring files into the company I would need a licence declaration in the repro. Any chance an open source licence could be added?

Adding an option to only highlight namespace-prefixed names

Although commenting out cppSTLfunction helps avoiding "too colorful" highlighting, there are still a lot of possibilities for extraneous highlights, e.g. the cppSTLtype "path".

Would it be possible to add a flag to only highlight names that are prefixed by their namespace (that would probably need to use a syntax match)? Or perhaps extra points if the "using" directive is configurable, e.g. the user can note in their vimrc "treat fs as the std::filesystem namespace, so highlight fs::path but not path"?

Thanks.

What needs to be added to .vimrc to make this work?

I dunno'... maybe I'm just too dumb to use this plugin. I'm definitely a vim newbie, but I got nerdtree working with no sweat at all.

Anyway, I only want C syntax coloring, and I think I want it to load automatically. After installation (using git) I open one of my source files using vim filename.c. But all I get is some generic highlighting (which existed before I installed vim-cpp-modern).

The README is no help, and after looking at some of the other issues I got no help from that.

How do you start this... how do you get vim-cpp-modern to apply syntax coloring appropriate to C source code? Simple instructions, please (I'm retarded, OK).

C++20 Coroutines

Since coroutines have made it in the C++20 standard, could the respective keywords be added as optional syntax highlighting (like done with concepts)?

the highlight doesn't change after installing

Hi guys,
I use both plug and git clone to install this plug, but neither works for me, the highlight doesn't change after I restart vim, I'm not sure if I mistook something in the process, I got stuck for all day long lol

Missing highlight of C++23 integer literals

C++23 introduced the new size suffix z or Z. More information can be found on the cppreference page on Integer literals, under "Syntax". Currently size-suffixed integer literals are not highlighted. Any chance that this could please be added to this plugin?

About the displayed colorscheme

Hello, I know this is not an issue or a bug but I really loved the colorscheme displayed on the screenshot and I cannot find it anywhere online. Is it custom?

Can you help me configure my vim colors the same way?

Thanks in advance.

concept/requires highlight

Hey there!

In the current version this plugin supports c++20 features like concepts, but if I try and write keywords associated with them, they are not highlighted.

Specifically: concept, requires.
There may be more, but I'm only starting c++20.

So, shouldn't they be highlighted?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.