Code Titans standard header for vim and nvim editors. It takes username and email from git configurations.
Copy stdheader.vim
in your ~/.vim/plugin
, or use your favorite plugin
manager. Then set the user and mail variables as explained below.
Add in ~/.bashrc
(if you use bash) or ~/.zshrc
(if you use zsh) your:
USER
MAIL
This is a fork of 42 stdheader plugin, these instructions still valid
let g:user42 = 'name'
let g:mail42 = 'yourLogin@domain.ao'
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
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
This work is published under the terms of 42 Unlicense.