Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pbondoer/vim-42header
vim header for 42 projects
https://github.com/pbondoer/vim-42header
42 42born2code dotfiles header neovim vim vim-header
Last synced: 2 months ago
JSON representation
vim header for 42 projects
- Host: GitHub
- URL: https://github.com/pbondoer/vim-42header
- Owner: pbondoer
- License: cc0-1.0
- Created: 2016-01-07T21:32:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T14:54:52.000Z (about 2 years ago)
- Last Synced: 2024-07-31T09:34:07.738Z (6 months ago)
- Topics: 42, 42born2code, dotfiles, header, neovim, vim, vim-header
- Language: Vim Script
- Size: 17.6 KB
- Stars: 108
- Watchers: 6
- Forks: 46
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-42 - vim-42header
README
# vim-42header
a (better) vim header for 42 projects![fancy header image](http://i.imgur.com/WTscMvi.png)
## Features
* Passes `norminette`
* Elegant trimming of long strings
* Updates filename line when changed
* Updates "Updated" line only when buffer is changed
* Works with all formats that default supports
* Binds to `F1` for easy access
* Overrides `:Stdheader` for school vim installsAlso, don't forget to set your `$USER` and `$MAIL` variables, marvin lives!
## Usage
### No plugin manager
Copy `42header.vim` to your `~/.vim/after/plugin/` folder. You're set!### pathogen
```
git clone https://github.com/pbondoer/vim-42header.git --recursive && mv -v vim-42header ~/.vim/bundle/
```### vim-plug
If you use vim-plug or any other plugin manager, simply add this line to your
plugin initialization:```vim
Plug 'pbondoer/vim-42header'
```## Why?
Part of the **Mexican Standoff** rush, I decided to add a few bonus features
and I now use this as my header for 42 files. On my linux setup, I have changed
the variable names in order to be able to have my own environment, but still
have a functional school environment. Feel free to add things :)!