Skip to content

function highlighting for C/C++ on Vim

Notifications You must be signed in to change notification settings

jcju/vim-monokai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

vim-monokai

Vim doesn't support function name highlighting for C/C++.

This is a simple solution of function highlighting & class highlighting for C/C++, with a Monokai theme maintained by crusoexia/vim-monokai.

Install

mkdir -p ~/.vim/colors

Download colors/monokai.vim file from this repo, and copy to ~/.vim/colors/.

Enable Theme

Copy below command to your ~/.vimrc:

syntax on
colorscheme monokai

Enable function highlighting for C/C++

mkdir -p ~/.vim/syntax

Download syntax/c.vim and copy to ~/.vim/syntax/; replace the existing file if needed.

The syntax rule will be applied to *.c, *.cc, *.cpp files.

About

function highlighting for C/C++ on Vim

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%