Giter Site home page Giter Site logo

Can't work properly about vim HOT 9 CLOSED

elin-croft avatar elin-croft commented on June 2, 2024
Can't work properly

from vim.

Comments (9)

elin-croft avatar elin-croft commented on June 2, 2024 1

from vim.

benknoble avatar benknoble commented on June 2, 2024

Question: is your terminal's font italic?

Anyway, see #242 and #219; if they don't answer your question, let us know and we'll re-open this. (The idea is that types should be italic blue, but if the terminal info read via TERM doesn't support italic properly it may show up inverted.)

from vim.

elin-croft avatar elin-croft commented on June 2, 2024

from vim.

benknoble avatar benknoble commented on June 2, 2024

Perhaps you could post some code: I'll see what my vim gives with the stock cpp syntax. If that's not enough you may just need a better syntax file, or we may need to add to our highlights.

from vim.

elin-croft avatar elin-croft commented on June 2, 2024

from vim.

benknoble avatar benknoble commented on June 2, 2024

Huh, for some reason I can't get that formatted right. (emails don't support markdown) But I will try to get the screenshot I mentioned.

from vim.

benknoble avatar benknoble commented on June 2, 2024

Capture d’écran 2021-10-20 à 09 53 42

Here's what I get. Looks fine to me. The green highlighting is from something I stole:

" ~/.vim/after/syntax/c.vim
" https://vi.stackexchange.com/q/4975/10604
syntax match cFunction "\<[a-zA-Z_][a-zA-Z_0-9]*\>[^()]*)("me=e-2
syntax match cFunction "\<[a-zA-Z_][a-zA-Z_0-9]*\>s*("me=e-1
highlight link cFunction Function

I should probably actually simplify those patterns…

from vim.

benknoble avatar benknoble commented on June 2, 2024

If you want more, googling vim cpp syntax comes up with at least two possibilities:

I can't comment on how good either is

from vim.

dsifford avatar dsifford commented on June 2, 2024

The cpp syntax in nvim-treesitter is top-notch as well. But that requires neovim.

from vim.

Related Issues (20)

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.