EpiHeader for vim is a vim plugin that allows you to print (post-2017) epitech headers in source files without entering project name or description (it uses the working directory and the file name without extension).
It exposes a command :EpitechHeader
that prints the header as follow:
/*
** EPITECH PROJECT, YEAR
** WORKING DIRECTORY
** File description:
** FILE NAME WITHOUT EXTENSION
*/
An example would be:
/*
** EPITECH PROJECT, 2020
** PSU_my_ls_2019
** File description:
** main
*/
In order for the project's name to work, you have to open vim in the root of your project, i recommand using NERDTree to navigate your project's files afterward. This plugin is heavily inspired by https://github.com/x4m3/vim-epitech which is itself inspired by https://github.com/Le-Bit/vim-epitech.
Example using Vundle:
- add
Plugin 'alexandre-snr/vim-epiheader'
to your .vimrc - reload the .vimrc file with
:source %
- run
:PluginInstall
- (optional) add a keybinding by adding
nnoremap <C-a> <Esc>:EpitechHeader<CR>
to your .vimrc. i've used Ctrl+a here, but feel free to change
Feel free to do anything with this.