Skip to content

nephcode/42header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 header

42 HEADER

NETWORK. URL
WWW 42 Paris
LINKEDIN 42 Born 2 Code (Paris)
LINKEDIN 42 The Network
INSTAGRAM 42 Born 2 Code (Paris)
INSTAGRAM 42 The Network
TIKTOK 42 Born 2 Code (Paris)

Stdheader is the standard 42 header for the Vim editor and Vim projects (for pisciners and students).

42 header

UNIX SETUP (LINUX)

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

Note for pisciners and beginners :
The tilde ~ represent your home folder. Find the key on your keyboard. Folders and files starting with a dot are hidden. To diplay them:

cd ~

use ls and -la argument

ls -la

so, now you can use the mv command or GUI paste with open

open .vim/plugin

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

Add in ~/.zshrc your:

  • USER
  • MAIL

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

let g:user42 = 'yourLogin'
let g:mail42 = 'yourLogin@student.42.fr'

If you do not set your login & mail, the default johndoe value will be replaced by moulinette

USAGE

In NORMAL mode you can use :Stdheader or simply press the shortcut F1.
Note for pisciners and beginners : in Vim, you have three main modes (there are more in reality):

  • INSERT key i
  • VISUAL key v
  • NORMAL key esc

On Linux you may need to disable your terminal default help shortcut:

For Terminator:
Right click -> Preferences -> Shortcuts -> change help to something other than F1

CLUSTER CONFIGURATION (SETUP)

Inside the 42 clusters you can simply run:

$ ./set_header.sh

CREDITS

WHOIS CONTRIBUTION
@zazard creator
@alexandregv contributor
@mjacq42 contributor
@sungmcho contributor
@fclivaz42 contributor
@nephcode contributor

BONUS

      /#/  |#/|#|
     /#/   |/ |#|
    /#/      /#/
   /#/      /#/
  /#/____  |#| /|
 |#######| |#|/#|
       |#| .FR    
       
Made with love <3 for 42 
Bonus wallpaper --> /img/badass42wallpaper.png

LICENSE

This work is published under the terms of the 42 Unlicense.

42 header

About

Alternative Header for 42 projects // VimScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors