{"id":20029954,"url":"https://github.com/linarcx/mpsl","last_synced_at":"2025-05-05T03:32:32.093Z","repository":{"id":118869362,"uuid":"247643239","full_name":"LinArcX/mpsl","owner":"LinArcX","description":"minimal (n)vim plugins - status line(Under 200 LOC) ","archived":true,"fork":false,"pushed_at":"2020-05-21T06:47:53.000Z","size":164,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T05:15:21.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinArcX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-03-16T07:59:39.000Z","updated_at":"2024-10-07T14:11:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"772b9cfb-3b0d-43b0-bcf8-83c0d4daf001","html_url":"https://github.com/LinArcX/mpsl","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/LinArcX%2Fmpsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinArcX%2Fmpsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinArcX%2Fmpsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinArcX%2Fmpsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinArcX","download_url":"https://codeload.github.com/LinArcX/mpsl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252435350,"owners_count":21747408,"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":[],"created_at":"2024-11-13T09:23:45.995Z","updated_at":"2025-05-05T03:32:32.071Z","avatar_url":"https://github.com/LinArcX.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\t\u003cimg width=\"900\" src=\"assets/screenshot.png\" alt=\"mpsl\"\u003e\n    \u003cbr/\u003e\n    \u003ch4 align=\"center\"\u003eUsing mpsl + \u003ca href=\"https://github.com/LinArcX/mpi\"\u003empi\u003c/a\u003e + \u003ca href=\"https://github.com/LinArcX/mpbtl\"\u003empbtl\u003c/a\u003e\n\u003c/h1\u003e\n\n## Installation\nJust copy `mpsl.vim` into your `plugin` directory.\n\n## Why?\n- [KISS](https://en.wikipedia.org/wiki/KISS_principle)\n- I like [vim-airline](https://github.com/vim-airline/vim-airline). But its code is huge for such a simple task.(showing statusline)\n- I like to manipulate and discover things and see what's going on under the hood(And i encourage you, too). So, instead of just using a huge plugin, install a minimal alternative and change it according to your needs.\n\n## Customization\n### Custom functins\nYou can add your own functions and call them later. For example i want to show file permisions and current git branch. First define them:\n\n```\nfunction! FilePermission()\n    return getfperm(expand('%:p'))\nendfunction\n\nfunction! GitBranch()\n    let l:branchname = system(\"git rev-parse --abbrev-ref HEAD 2\u003e/dev/null | tr -d '\\n'\")\n    return strlen(l:branchname) \u003e 0?'  '.l:branchname.' ':' '\nendfunction\n```\n\nAnd call them like this:\n```\nset statusline+=%1*\\%{GitBranch()}\nset statusline+=%1*\\ %{FilePermission()}\\ |\n```\n\n### Using emojies\nAlso you can add [unicode emojies](https://en.wikipedia.org/wiki/Template:Emoji_(Unicode_block)) like this:\n`set statusline+=%5*\\ %{nr2char(0x1f47d)}`\n\n\n### Define custom colors\nIf you want to use different colors, first you should define different `Highlight commands`. Here is an example:\n```\nhi User5 ctermbg=233 ctermfg=39  \" Black/Sky-Blue\nhi User6 ctermbg=233 ctermfg=007 \" Black/Sky-Blue\n```\nAnd use them like this:\n\n`set statusline+=%5*\\ %{nr2char(0x1f47d)}`\n\nHere is the list of colors: https://jonasjacek.github.io/colors/\n\n## Donate\n- Bitcoin: `13T28Yd37qPtuxwTFPXeG9dWPahwDzWHjy`\n\u003cimg src=\"assets/donate/Bitcoin.png\" width=\"200\" align=\"center\" /\u003e\n\n- Monero: `48VdRG9BNePEcrUr6Vx6sJeVz6EefGq5e2F5S9YV2eJtd5uAwjJ7Afn6YeVTWsw6XGS6mXueLywEea3fBPztUbre2Lhia7e`\n\u003cimg src=\"assets/donate/Monero.png\" align=\"center\" /\u003e\n\n## License\n![License](https://img.shields.io/github/license/LinArcX/mpsl.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinarcx%2Fmpsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinarcx%2Fmpsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinarcx%2Fmpsl/lists"}