{"id":13479867,"url":"https://github.com/editorconfig/editorconfig-vim","last_synced_at":"2025-04-29T18:43:54.549Z","repository":{"id":1745235,"uuid":"2571129","full_name":"editorconfig/editorconfig-vim","owner":"editorconfig","description":"EditorConfig plugin for Vim","archived":false,"fork":false,"pushed_at":"2025-04-21T07:21:57.000Z","size":2204,"stargazers_count":3153,"open_issues_count":43,"forks_count":141,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-21T08:30:56.573Z","etag":null,"topics":["editorconfig","editorconfig-plugin","vim"],"latest_commit_sha":null,"homepage":"http://editorconfig.org","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/editorconfig.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":"2011-10-13T17:41:23.000Z","updated_at":"2025-04-21T07:22:02.000Z","dependencies_parsed_at":"2023-02-19T13:31:20.718Z","dependency_job_id":"f2745b7a-02a7-40a7-8e36-ceb9e28ad87c","html_url":"https://github.com/editorconfig/editorconfig-vim","commit_stats":{"total_commits":478,"total_committers":67,"mean_commits":7.134328358208955,"dds":0.7824267782426778,"last_synced_commit":"8b7da79e9daee7a3f3a8d4fe29886b9756305aff"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/editorconfig","download_url":"https://codeload.github.com/editorconfig/editorconfig-vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251561860,"owners_count":21609470,"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":["editorconfig","editorconfig-plugin","vim"],"created_at":"2024-07-31T16:02:24.292Z","updated_at":"2025-04-29T18:43:54.541Z","avatar_url":"https://github.com/editorconfig.png","language":"Vim Script","funding_links":[],"categories":["Vim Script","Vim script","neovim","vim","Tools"],"sub_categories":["Editing"],"readme":"# EditorConfig Vim Plugin\n\n[![Travis Build Status](https://img.shields.io/travis/cxw42/editorconfig-vim.svg?logo=travis)](https://travis-ci.org/editorconfig/editorconfig-vim)\n[![Appveyor Build Status](https://img.shields.io/appveyor/ci/cxw42/editorconfig-vim.svg?logo=appveyor)](https://ci.appveyor.com/project/cxw42/editorconfig-vim)\n\nThis is an [EditorConfig][] plugin for Vim. This plugin can be found on both\n[GitHub][] and [Vim online][].\n\n## Bundled versions\n\nDepending on which version of Vim or Neovim you are using, you might not need to\nspecifically install this plugin at all:\n\n* Vim 9.0.1799 and above comes bundled with [a recent stable version of this\n  plugin][].\n* Neovim 0.9 and above comes with [its own Lua-based implementation][].\n\n## Installation\n\nTo install this plugin, you can use one of the following ways:\n\n### Install with the archive\n\nDownload the [archive][] and extract it into your Vim runtime directory\n(`~/.vim` on UNIX/Linux and `$VIM_INSTALLATION_FOLDER\\vimfiles` on windows).\nYou should have 4 sub-directories in this runtime directory now: \"autoload\",\n\"doc\", \"ftdetect\" and \"plugin\".\n\n### Install as Vim8 plugin\n\nInstall as a Vim 8 plugin. Note `local` can be any name, but some path\nelement must be present. On Windows, instead of `~/.vim` use\n`$VIM_INSTALLATION_FOLDER\\vimfiles`.\n```shell\nmkdir -p ~/.vim/pack/local/start\ncd ~/.vim/pack/local/start\ngit clone https://github.com/editorconfig/editorconfig-vim.git\n```\n\n### Install with [pathogen][]\n\nUse pathogen (the git repository of this plugin is\nhttps://github.com/editorconfig/editorconfig-vim.git)\n\n### Install with [Vundle][]\n\nUse Vundle by adding to your `.vimrc` Vundle plugins section:\n\n```viml\nPlugin 'editorconfig/editorconfig-vim'\n```\n\nThen call `:PluginInstall`.\n\n### Install with [vim-plug][]\n\nUse vim-plug by adding to your `.vimrc` in your plugin section:\n\n```viml\nPlug 'editorconfig/editorconfig-vim'\n```\n\nSource your `.vimrc` by calling `:source $MYVIMRC`.\n\nThen call `:PlugInstall`.\n\n### No external editorconfig core library is required\n\nPrevious versions of this plugin also required a Python \"core\".\nThe core included the code to parse `.editorconfig` files.\nThis plugin **includes** the core, so you don't need to download the\ncore separately.\n\n### Version Supported\n\nVim v9.1.0543 and Neovim v0.10.x or earlier versions: This plugin after version\n1.2.1 will not automatically set `.editorconfig` filetype to `dosini`. Please\ninstall version 1.2.1 of this plugin if you would like to retain this behavior.\n\n## Supported properties\n\nThe EditorConfig Vim plugin supports the following EditorConfig [properties][]:\n\n* `indent_style`\n* `indent_size`\n* `tab_width`\n* `end_of_line`\n* `charset`\n* `insert_final_newline` (Feature `+fixendofline`, available on Vim 7.4.785+,\n  or [PreserveNoEOL][] is required for this property)\n* `trim_trailing_whitespace`\n* `max_line_length`\n* `root` (only used by EditorConfig core)\n\n## Selected Options\n\nThe supported options are documented in [editorconfig.txt][]\nand can be viewed by executing the following: `:help editorconfig`. You may\nneed to execute `:helptags ALL` so that Vim is aware of editorconfig.txt.\n\n### Excluded patterns\n\nTo ensure that this plugin works well with [Tim Pope's fugitive][], use the\nfollowing patterns array:\n\n```viml\nlet g:EditorConfig_exclude_patterns = ['fugitive://.*']\n```\n\nIf you wanted to avoid loading EditorConfig for any remote files over ssh:\n\n```viml\nlet g:EditorConfig_exclude_patterns = ['scp://.*']\n```\n\nOf course these two items could be combined into the following:\n\n```viml\nlet g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']\n```\n\n### Disable for a specific filetype\n\nYou can disable this plugin for a specific buffer by setting\n`b:EditorConfig_disable`.  Therefore, you can disable the\nplugin for all buffers of a specific filetype. For example, to disable\nEditorConfig for all git commit messages (filetype `gitcommit`):\n\n```viml\nau FileType gitcommit let b:EditorConfig_disable = 1\n```\n\n### Disable rules\n\nIn very rare cases,\nyou might need to override some project-specific EditorConfig rules in global\nor local vimrc in some cases, e.g., to resolve conflicts of trailing whitespace\ntrimming and buffer autosaving.  This is not recommended, but you can:\n\n```viml\nlet g:EditorConfig_disable_rules = ['trim_trailing_whitespace']\n```\n\nYou are able to disable any supported EditorConfig properties.\n\n## Bugs and Feature Requests\n\nFeel free to submit bugs, feature requests, and other issues to the\n[issue tracker][]. Be sure you have read the [contribution guidelines][]!\n\n[EditorConfig]: https://editorconfig.org\n[GitHub]: https://github.com/editorconfig/editorconfig-vim\n[PreserveNoEOL]: http://www.vim.org/scripts/script.php?script_id=4550\n[Tim Pope's fugitive]: https://github.com/tpope/vim-fugitive\n[Vim online]: http://www.vim.org/scripts/script.php?script_id=3934\n[a recent stable version of this plugin]: https://github.com/vim/vim/pull/12902\n[its own Lua-based implementation]: https://github.com/neovim/neovim/commit/ab9a2c49253413dbbb31756a3eeddb354a663035\n[Vundle]: https://github.com/gmarik/Vundle.vim\n[archive]: https://github.com/editorconfig/editorconfig-vim/archive/master.zip\n[contribution guidelines]: https://github.com/editorconfig/editorconfig/blob/master/CONTRIBUTING.md#submitting-an-issue\n[issue tracker]: https://github.com/editorconfig/editorconfig-vim/issues\n[pathogen]: https://github.com/tpope/vim-pathogen\n[properties]: http://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties\n[editorconfig.txt]: https://github.com/editorconfig/editorconfig-vim/blob/master/doc/editorconfig.txt\n[vim-plug]: https://github.com/junegunn/vim-plug\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditorconfig%2Feditorconfig-vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feditorconfig%2Feditorconfig-vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditorconfig%2Feditorconfig-vim/lists"}