{"id":16689847,"url":"https://github.com/eddieantonio/vim-center","last_synced_at":"2025-06-14T04:37:05.497Z","repository":{"id":68093090,"uuid":"219206098","full_name":"eddieantonio/vim-center","owner":"eddieantonio","description":"Center headings easily in vim!","archived":false,"fork":false,"pushed_at":"2019-11-17T19:43:05.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T14:56:55.529Z","etag":null,"topics":["center","comments","headings","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddieantonio.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":"2019-11-02T19:52:37.000Z","updated_at":"2019-11-17T19:43:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b43f75a-c36c-4c0f-a4dc-bfa09ca02b9e","html_url":"https://github.com/eddieantonio/vim-center","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Fvim-center","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Fvim-center/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Fvim-center/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Fvim-center/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddieantonio","download_url":"https://codeload.github.com/eddieantonio/vim-center/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243467025,"owners_count":20295309,"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":["center","comments","headings","vim"],"created_at":"2024-10-12T15:49:34.426Z","updated_at":"2025-03-13T19:16:36.924Z","avatar_url":"https://github.com/eddieantonio.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"vim-center\n==========\n\n[![Build Status](https://travis-ci.org/eddieantonio/vim-center.svg?branch=master)](https://travis-ci.org/eddieantonio/vim-center)\n\nVim plugin to make **centered headings**:\n\n[![Demo of using vim-center](https://raw.githubusercontent.com/eddieantonio/i/master/vim-center.gif)](https://asciinema.org/a/281912?t=2)\n\n\nInstall\n-------\n\nUse your favourite package manager:\n\n### Pathogen \u003chttps://github.com/tpope/vim-pathogen\u003e\n\n    git clone https://github.com/eddieantonio/vim-center ~/.vim/bundle/vim-center\n\n### vim-plug \u003chttps://github.com/gmarik/vundle\u003e\n\n    Plug 'eddieantonio/vim-center'\n\n### Vundle \u003chttps://github.com/gmarik/vundle\u003e\n\n    Plugin 'eddieantonio/vim-center'\n\n\nCommands\n--------\n\nThere is only one command: `:CenterHeading`\n\nWrite a heading in your buffer like this:\n\n```\nThis is my heading\n```\n\nThen, in normal mode, type `:CenterHeading` and press enter:\n\n```python\n########################## This is my heading ##########################\n```\n\nThe delimiters are determined automatically by file type. Say I was\nwriting code in C and I made a heading for constants:\n\n```c\nConstants\n\nenum {\n    MY,\n    WILD,\n    ENUM\n};\n```\n\nUse `:CenterHeading` while on the first line:\n\n```c\n/***************************** Constants ******************************/\n\nenum {\n    MY,\n    WILD,\n    ENUM\n};\n```\n\n\nMappings\n--------\n\n*vim-center* does not define any mappings by default, but\n`:CenterHeading` can be mapped by using `\u003cPlug\u003e(center-heading)`. For\nexample, I have this in my `.vimrc`:\n\n```vim\nnoremap \u003cLeader\u003ech \u003cPlug\u003e(center-heading)\n```\n\n\nCredits\n-------\n\nWritten in 2019 by Eddie Antonio Santos.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddieantonio%2Fvim-center","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddieantonio%2Fvim-center","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddieantonio%2Fvim-center/lists"}