Skip to content

yongzhy/vim-cflags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

vim-cflags

Introduction

Installation

Use Vundle.vim to install this plugin

Plugin 'yongzhy/vim-cflags'

Setting

Only one global veriable is required, g:c_define_file points to the file has all global defines.

 let g:c_define_file="f:/flags.h"

Example of the define file:

#define _HELLO_ 1
#define _WORLD_ 0

Key Setting

cflags#SynUpdate() will update current buffer to gray out those inactive code blocks cflags#PrintDefine() will display the flag value under cursor

nnoremap <leader>bu :call cflags#SynUpdate()<cr>
nnoremap <leader>fv :call cflags#PrintDefine()<cr>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published