Skip to content

wateret/ifdef-heaven.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ifdef-heaven.vim

A Vim plugin that shows where you are in #if{def|ndef}(preprocessor directives) blocks.

Press the mapped key! (I use f for this)

:D

Requirement

Your vim must support +python or +python3. You may check that by vim --version.

How to Install

Copy ifdef-heaven.vim and ifdef-heaven.py to plugin directory.

$ cp ifdef-heaven.vim ifdef-heaven.py ~/.vim/plugin

Append below to .vimrc (binding f key for this plugin)

map f :call IfdefHeaven_WhereAmI() <CR>

How to Use

Press mapped key(f for above example). It will show you the #if*** context of current cursor position.

About

Saves you from ifdef hell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published