{"id":24623154,"url":"https://github.com/jsexpertcoder/vim-cbase","last_synced_at":"2026-01-17T12:33:20.270Z","repository":{"id":268616111,"uuid":"904890015","full_name":"JsExpertCoder/vim-cbase","owner":"JsExpertCoder","description":"A Vim plugin to quickly add a starter template for C exercises.","archived":false,"fork":false,"pushed_at":"2025-02-23T21:05:49.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:41:31.517Z","etag":null,"topics":["vim","vim-plugin","vimscript"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JsExpertCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-17T18:40:26.000Z","updated_at":"2025-02-23T21:05:52.000Z","dependencies_parsed_at":"2024-12-17T22:28:34.416Z","dependency_job_id":null,"html_url":"https://github.com/JsExpertCoder/vim-cbase","commit_stats":null,"previous_names":["jsexpertcoder/vim-cbase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JsExpertCoder/vim-cbase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsExpertCoder%2Fvim-cbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsExpertCoder%2Fvim-cbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsExpertCoder%2Fvim-cbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsExpertCoder%2Fvim-cbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JsExpertCoder","download_url":"https://codeload.github.com/JsExpertCoder/vim-cbase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsExpertCoder%2Fvim-cbase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264376419,"owners_count":23598534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vim","vim-plugin","vimscript"],"created_at":"2025-01-25T03:33:47.908Z","updated_at":"2025-07-09T01:38:37.470Z","avatar_url":"https://github.com/JsExpertCoder.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CBase\n\n**CBase** is a Vim plugin designed to quickly insert a starter template for C programming exercises, specifically tailored for 42 School projects.\n\n## Features\n- Inserts a clean and minimal C starter template one line after the 42 header:\n```c\n#include \u003cunistd.h\u003e\n\nint     main(void)\n{\n        return (0);\n}\n```\n- Saves time when setting up repetitive C programming exercises.\n\n## Installation\n\n### Using [vim-plug](https://github.com/junegunn/vim-plug)\n\nAdd a vim-plug section to your `~/.vimrc` (or `~/.config/nvim/init.vim` for Neovim)\n\n1. Begin the section with `call plug#begin()`\n1. List the plugins with `Plug` commands\n1. End the section with `call plug#end()`\n\nFor example,\n\n```vim\ncall plug#begin()\n\n\" List your plugins here\nPlug 'JsExpertCoder/cbase'\n\ncall plug#end()\n```\n\nReload the file or restart Vim, then you can,\n\n* `:PlugInstall` to install the plugins\n* `:PlugUpdate` to install or update the plugins\n* `:PlugDiff` to review the changes from the last update\n* `:PlugClean` to remove plugins no longer in the list\n\n### Manual Installation\n\n1. **Open your terminal:**\n\n    Open a terminal window on your system. \n\n2. **Download the plugin repository:**\n\n    Run the following command in the terminal to download the repository:\n\n    ```bash\n    git clone https://github.com/JsExpertCoder/cbase.git\n    ```\n\n3. **Move the plugin to the Vim runtime path:**\n\n    Copy the `cbase` folder into the `~/.vim/pack/plugins/start/` directory:\n\n    ```bash\n    mv cbase ~/.vim/pack/plugins/start/\n    ```\n\n    For Neovim, use this directory instead:\n\n    ```bash\n    mv cbase ~/.local/share/nvim/site/pack/plugins/start/\n    ```\n\n4. **Restart Vim or Neovim:**\n\n    Close and reopen Vim or Neovim to load the plugin automatically.\n\n\n## Usage\n\n1. Insert the Header:\n Press **F1** or run : **StdHeader** to insert your 42 School project header.\n2. Insert the Template:\n\n- Press **F2** to **insert** the C starter template.\n\n- Alternatively, run the command:\n```vim\n:Cbase\n```\n### Notes\n- Ensure that your header is inserted first to maintain 42 School coding standards.\n- This plugin assumes the C code starts after line 14 (common for projects at 42 School).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsexpertcoder%2Fvim-cbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsexpertcoder%2Fvim-cbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsexpertcoder%2Fvim-cbase/lists"}