Skip to content

pmerku/42header

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 Header

42 (Paris) Codam (Amsterdam)

Description

42 or Codam standard header for vim editor.

42 header Codam header

UNIX Setup

Copy stdheader.vim in your ~/.vim/plugin, or use your favorite plugin manager. Then set the user, mail and school variables as explained below.

To install with Vundle place this in your .vimrc:

Plugin 'pmerku/42header'

then run the following in Vim:

:source %
:PluginInstall

Option 1: export USER, MAIL and SCHOOL in your shell configuration file

Add in ~/.zshrc your:

  • USER
  • MAIL
  • SCHOOL

Option 2: set user, mail and school values directly in your vimrc

let g:user42 = 'yourLogin'
let g:mail42 = '[email protected]'
let g:school42 = 'yourSchoolName'

Usage

In NORMAL mode you can use :Stdheader or simply press the shortcut F1.

Under Linux you eventually need to disable the help shortcut of your terminal :

For Terminator, right click -> Preferences -> Shortcuts -> change help with something other than F1

Note

Inside the clusters you can easily run:

$ ./set_header.sh [schoolname] [region]

Credits

@zazard - creator
@alexandregv - contributor
@mjacq42 - contributor
@sungmcho - contributor

License

This work is published under the terms of 42 Unlicense.

About

42 header

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 82.6%
  • Shell 17.4%