Skip to content

42 header fork specific for code titans projects

License

Notifications You must be signed in to change notification settings

Tesla-J/code-titans-header

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Titans Header

Description

Code Titans standard header for vim and nvim editors. It takes username and email from git configurations.

Code Titans header

UNIX Setup

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

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

Add in ~/.bashrc (if you use bash) or ~/.zshrc (if you use zsh) your:

  • USER
  • MAIL

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

This is a fork of 42 stdheader plugin, these instructions still valid

let g:user42 = 'name'
let g:mail42 = 'yourLogin@domain.ao'

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

You can run the script bellow to easily setup the plugin. If you do not use bash, modify the value of the SHRC variable in the script with the path of your shell configuration file.

$ ./set_header.sh

Credits

Original repository

License

This work is published under the terms of 42 Unlicense.

About

42 header fork specific for code titans projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 84.2%
  • Shell 15.8%