{"id":13835729,"url":"https://github.com/liuchengxu/vim-better-default","last_synced_at":"2025-04-10T02:23:24.100Z","repository":{"id":12624605,"uuid":"72386132","full_name":"liuchengxu/vim-better-default","owner":"liuchengxu","description":":art: Simplify your .vimrc and make the default vim better","archived":false,"fork":false,"pushed_at":"2024-05-17T11:39:37.000Z","size":46,"stargazers_count":160,"open_issues_count":3,"forks_count":38,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T23:13:36.057Z","etag":null,"topics":["default-vim","space-vim","vim","vim-plugin","vimrc"],"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/liuchengxu.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":"2016-10-31T01:07:34.000Z","updated_at":"2025-02-05T20:23:31.000Z","dependencies_parsed_at":"2024-11-08T20:41:18.362Z","dependency_job_id":"febe5a94-7087-4ccd-bd5b-18b6a475d7b6","html_url":"https://github.com/liuchengxu/vim-better-default","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/liuchengxu%2Fvim-better-default","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuchengxu%2Fvim-better-default/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuchengxu%2Fvim-better-default/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuchengxu%2Fvim-better-default/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liuchengxu","download_url":"https://codeload.github.com/liuchengxu/vim-better-default/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143343,"owners_count":21054762,"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":["default-vim","space-vim","vim","vim-plugin","vimrc"],"created_at":"2024-08-04T14:01:12.078Z","updated_at":"2025-04-10T02:23:24.057Z","avatar_url":"https://github.com/liuchengxu.png","language":"Vim Script","funding_links":[],"categories":["Vim script","Vim Script"],"sub_categories":[],"readme":"vim-better-default\n==================\n\nThere are some general settings for convenience in almost everyone's `.vimrc` file. Let's shorten your `.vimrc` and make the default vim better.\n\n## Features\n\n- **Out-of-the-box**: address a ton of deficiencies of the default vim configurations that nearly everyone can agree upon.\n\n- **Mnemonic key bindings**: commands have mnemonic prefixes like `\u003cLeader\u003e b` for the buffer commands or `\u003cLeader\u003e w` for the window commands. `SPC` key is recommended as the leader key. You could also see the key bindings in [wiki](https://github.com/liuchengxu/vim-better-default/wiki/a-brief-introduction-to-key-bindings).\n\nIf new to Vim, you can install [vim-better-default](https://github.com/liuchengxu/vim-better-default) as a starting point, rather than copying some random vimrc you found.\n\nIf you have been a vimmer for quite a while, please see [default.vim](https://github.com/liuchengxu/vim-better-default/blob/master/plugin/default.vim) directly. In the beginning [vim-better-default](https://github.com/liuchengxu/vim-better-default) is intended for simplifying the tedious `.vimrc` file, so you may also use it to shorten your `.vimrc`.\n\n## Installation\n\nThis plugin can be installed with a varity of plugin managers, such as:\n\n- [Vundle](https://github.com/VundleVim/Vundle.vim)\n    - Add `Plugin 'liuchengxu/vim-better-default` to .vimrc\n    - Run `:source $MYVIMRC` and `:PluginInstall`\n- [Plug](https://github.com/junegunn/vim-plug)\n    - Add `Plug 'liuchengxu/vim-better-default` to .vimrc\n    - Run `:source $MYVIMRC` and `:PlugInstall`\n\n## Options\n\nOption                                  | Description                        | Default |\n:----                                   | :----                              | :----:\n`vim_better_default_minimum`            | Only add essential funationalities | 0\n`vim_better_default_backup_on`          | Set backup                         | 0\n`vim_better_default_persistent_undo`    | Persistent undo                    | 0\n`vim_better_default_enable_folding`     | Enable fold                        | 1\n`vim_better_default_key_mapping`        | Whole key (re)mappings             | 1\n`vim_better_default_basic_key_mapping`  | Basic key (re)mappings             | 1\n`vim_better_default_buffer_key_mapping` | Buffer key mappings                | 1\n`vim_better_default_file_key_mapping`   | File key mappings                  | 1\n`vim_better_default_fold_key_mapping`   | Fold key mappings                  | 1\n`vim_better_default_window_key_mapping` | Window key mappings                | 1\n\n\nIf you set the `vim_better_default_minumum` option, then vim seemingly looks like no difference with the default vim, it only adds some essential funtionalities.\n\n```vim\nlet g:vim_better_default_minimum = 1\n```\n\nIf you want to exclude key mappings in [vim-better-default](https://github.com/liuchengxu/vim-better-default), just set the value as 0.\n\n```vim\nlet g:vim_better_default_key_mapping = 0\n```\n\nFor more details, please refer to the [default.vim](https://github.com/liuchengxu/vim-better-default/blob/master/plugin/default.vim). Don't worry. It is extremely simple and just part of your own `.vimrc` file alike.\n\nYou can also fork [vim-better-default](https://github.com/liuchengxu/vim-better-default) and modify `plugin/default.vim` for more customization.\n\n## How to override the existing settings?\n\n`default.vim` normally loads after your `.vimrc`, making it a bit tricky to override. If you want to load it earlier, add the following content to your `.vimrc`, then follow on the settings you want to override.\n\nFor instance, if you don't like relativenumber:\n\n```vim\nruntime! plugin/default.vim\nset norelativenumber\n```\n\n## Contributions\n\nIf you have any ideas or suggestions to improve [vim-better-default](https://github.com/liuchengxu/vim-better-default), please [open an issue](https://github.com/liuchengxu/vim-better-default/issues), or fork it and send a pull request. Your feedback is highly appreciated.\n\n## Inspiration\n\n- [spacemacs](https://github.com/syl20bnr/spacemacs)\n- [better-defaults](https://github.com/technomancy/better-defaults)\n- [vim-sensible](https://github.com/tpope/vim-sensible)\n- [space-vim](https://github.com/liuchengxu/space-vim)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuchengxu%2Fvim-better-default","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliuchengxu%2Fvim-better-default","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuchengxu%2Fvim-better-default/lists"}