Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

27 Commits

Repository files navigation

42 header

42 HEADER

NETWORK.URL
WWW42 Paris
LINKEDIN42 Born 2 Code (Paris)
LINKEDIN42 The Network
INSTAGRAM42 Born 2 Code (Paris)
INSTAGRAM42 The Network
TIKTOK42 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

letg:user42='yourLogin'letg: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

WHOISCONTRIBUTION
@zazardcreator
@alexandregvcontributor
@mjacq42contributor
@sungmchocontributor
@fclivaz42contributor
@nephcodecontributor

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages