All Projects → pandark → 42header.vim

pandark / 42header.vim

Licence: MIT license
Add and update the 42 comment header at the top of your files

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to 42header.vim

passport-42
Passport strategy for authenticating with 42 using the OAuth 2.0 API
Stars: ✭ 26 (+73.33%)
Mutual labels:  42born2code, 42, 42school
42MapGenerator
Generate FdF maps of the real world, the Earth's moon and the planet Venus for the project Fil de Fer
Stars: ✭ 58 (+286.67%)
Mutual labels:  42born2code, 42, 42school
ft get next line
42 São Paulo - get_next_line
Stars: ✭ 17 (+13.33%)
Mutual labels:  42born2code, 42, 42school
minishell tester
42 | Complex tester for minishell (42cursus)
Stars: ✭ 31 (+106.67%)
Mutual labels:  42born2code, 42, 42school
42 Projects
What is 42? How does curriculum look like? A manual reference for all 42 projects I've done so far (Zappy, Malloc, C++ Piscine... check out for more)! 💡📈
Stars: ✭ 111 (+640%)
Mutual labels:  42born2code, 42, 42school
1337
This repository contains a collection of 42School cursus projects in addition to the pool/piscine days (with a detailed step by step explanation). Enjoy!
Stars: ✭ 35 (+133.33%)
Mutual labels:  42born2code, 42, 42school
42ShellTester
Integration test suite for Shell implementation
Stars: ✭ 35 (+133.33%)
Mutual labels:  42born2code, 42, 42school
Coc.nvim
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Stars: ✭ 18,268 (+121686.67%)
Mutual labels:  vim-plugin, neovim-plugin
qf helper.nvim
A collection of improvements for the quickfix buffer
Stars: ✭ 70 (+366.67%)
Mutual labels:  vim-plugin, neovim-plugin
auto-pairs
Vim plugin, insert or delete brackets, parentheses, and quotes in pairs
Stars: ✭ 109 (+626.67%)
Mutual labels:  vim-plugin, neovim-plugin
vim-readme-viewer
📖 Viewing plugin's README easily like vim help
Stars: ✭ 26 (+73.33%)
Mutual labels:  vim-plugin, neovim-plugin
Vim Ghost
Vim/Nvim client for GhostText - Edit browser text areas in Vim/Neovim
Stars: ✭ 245 (+1533.33%)
Mutual labels:  vim-plugin, neovim-plugin
Vim Vsnip
Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
Stars: ✭ 224 (+1393.33%)
Mutual labels:  vim-plugin, neovim-plugin
Indent Blankline.nvim
Indent guides for Neovim
Stars: ✭ 203 (+1253.33%)
Mutual labels:  vim-plugin, neovim-plugin
Visual Split.vim
Vim plugin to control splits with visual selections or text objects
Stars: ✭ 190 (+1166.67%)
Mutual labels:  vim-plugin, neovim-plugin
examrank-02-03-04-05-06
exam project 2020
Stars: ✭ 195 (+1200%)
Mutual labels:  42born2code, 42school
stable-windows
Keeps vim windows stable on layout changes
Stars: ✭ 41 (+173.33%)
Mutual labels:  vim-plugin, neovim-plugin
init
School 42 project // DevOps project
Stars: ✭ 13 (-13.33%)
Mutual labels:  42, 42school
42-piscine-exam
This repo has all exercises of "C Exam Alone In The Dark - Beginner" sorted from level_00 to Level_05
Stars: ✭ 218 (+1353.33%)
Mutual labels:  42born2code, 42
beacon.nvim
Whenever cursor jumps some distance or moves between windows, it will flash so you can see where it is
Stars: ✭ 217 (+1346.67%)
Mutual labels:  vim-plugin, neovim-plugin

42header.vim

Add and update the 42 comment header at the top of your files

Installation

The $USER and $MAIL environment variables must be set (in your zshrc or bashrc file), unless b:fortytwoheader_user and/or b:fortytwoheader_mail are defined, in which case they are used instead.

Install with vim-plug

Add to vimrc file:

Plug 'pandark/42header.vim'

And install it:

vim +PlugInstall +qall

Install with pathogen

git clone https://github.com/pandark/42header.vim.git ~/.vim/bundle/42header.vim

Stdheader plugin desactivation

42header.vim removes the autocomand set on BufWritePre by stdheader.vim plugin so that the header is not updated if the file has not been modified.

You can optionally add this line to also remove the command Stdheader from the same plugin:

delcommand Stdheader

Usage

  • Type :FortyTwoHeader or use the key mapping you've assigned to it.
  • Make some change to the file, then save it. The header will update automatically.

Key mapping

Add the following line to your vimrc file so you can add the header by pressing F1 key:

nmap <f1> :FortyTwoHeader<CR>

User-defined delimiters

You can use b:fortytwoheader_delimiters to set or override the characters used in the header borders. E.g. add support for Django templates by adding the following line to your vimrc file:

autocmd FileType htmldjango let b:fortytwoheader_delimiters=['{#', '#}', '*']

Credits

Author: Adrien "Pandark" Pachkoff

Original plugin: zaz

Some ideas stolen from pbondoer.

Contributing

Pull requests welcome!

Bug Reports

Report a bug on GitHub Issues.

License

Distributed under the MIT license. See the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].