{"id":15647512,"url":"https://github.com/mklabs/vimfiles","last_synced_at":"2025-05-08T19:36:18.751Z","repository":{"id":3310100,"uuid":"4352428","full_name":"mklabs/vimfiles","owner":"mklabs","description":"(n)vim conf, tailored for Onivim","archived":false,"fork":false,"pushed_at":"2024-06-09T01:53:11.000Z","size":1145,"stargazers_count":44,"open_issues_count":0,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-07T23:40:23.666Z","etag":null,"topics":["nvim","onivim","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/mklabs.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":"2012-05-16T22:19:38.000Z","updated_at":"2024-01-31T02:35:58.000Z","dependencies_parsed_at":"2024-10-03T12:20:01.015Z","dependency_job_id":"2dd3a0c0-d5b9-43f5-b410-5b71ec2a40f8","html_url":"https://github.com/mklabs/vimfiles","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/mklabs%2Fvimfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mklabs%2Fvimfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mklabs%2Fvimfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mklabs%2Fvimfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mklabs","download_url":"https://codeload.github.com/mklabs/vimfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224763056,"owners_count":17365657,"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":["nvim","onivim","vim"],"created_at":"2024-10-03T12:19:43.081Z","updated_at":"2024-11-15T10:05:58.637Z","avatar_url":"https://github.com/mklabs.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vimfiles\n\nThis is my cross-platform, cross-editor `~/.vim` folder.\n\nThat being said, this repo is now tailored to work best with [Onivim](https://www.onivim.io).\n\n## Description\n\n- Works well on unix, and pretty fine on Windows\n- Small set of [plugins](#plugins) for general development\n- Modular nvim / vim and common [configuration](#configuration). Plugins'\n  configurations are loaded from their respective files.\n\nHere is how it looks with [Onivim](https://www.onivim.io) on Windows 10 and\n[Windows Subsystem for\nLinux](https://docs.microsoft.com/fr-fr/windows/wsl/about).\n\n![onivim](https://user-images.githubusercontent.com/113832/46247500-926bf380-c40c-11e8-882b-8769a523a532.png)\n\n## Installation\n\nUsing Neovim: Clone to `~/.config/nvim`.\n```sh\n# osx / nix\n$ git clone https://github.com/mklabs/vimfiles.git ~/.config/nvim\n```\n\nUsing vim: Clone to `~/vimfiles` on windows, clone to `~/.vim` everywhere else.\n\nUsing onivim: Clone to `~/AppData/Local/nvim` on windows, and ignore the following Windows note.\n\n**Windows Note**: You need to rename the ~/.vimrc to its windows equivalent\n`~/_vimrc` \u0026 `~/_gvimrc` (a `_` instead of `.`). The colorscheme is left to\ndefault and can be configured in `_vimrc` file.\n\n**Fonts note**: In order for vim-devicons to work, you'll need to install\n[Droid sans Mono nerd\nfont](https://github.com/ryanoasis/nerd-fonts#font-installation) and run `sudo fc-cache -f -v` (tested on Ubuntu)\n\n### Plugin install\n\nOnce vim is started, run `:PlugInstall` or `:PlugUpdate`.\n\n## Plugins\n\nSee [`config/plugins.vim`](./config/plugins.vim) to configure the list of plugins to install.\n\n## Configuration\n\n### vimrc\n\n`init.vim` is just a symlink to `vimrc`. The first is used by neovim while the\nlatter is used by regular vim.\n\nCommon plugin and configurations are loaded with from within\n[`./config`](./config) folder.\n\nDefault themse set to [Oceanic Next][] only for unix terminal or GUI environment.\n\n#### ./config\n\n- plugins.vim - vim-plug initialization and definitions of plugins used\n- mappings.vim - contains most of the general keybindings (not plugin specific)\n- autocmd.vim - Autocommand stuff to hook certain action on particular Vim events\n\n#### ./plugins\n\n- {pluginName}.vim - contains plugin specific configuration and mappings\n\n#### Mappings\n\nThese mappings have been thought to work alongside Onivim's default one.\n\n| Mapping              | Description                                 |\n| ---------            | -------------                               |\n| ,                    | Map Leader                                  |\n| Shift Up             | Previous tab                                |\n| Shift Down           | Next Tab                                    |\n| Shift Left           | Previous Tab                                |\n| Shift Right          | Next Tab                                    |\n| Shift h              | Previous buffer                             |\n| Shift l              | Next buffer                                 |\n| Ctrl Left, Ctrl h    | Navigate to left window                     |\n| Ctrl Right, Ctrl l   | Navigate to right window                    |\n| Ctrl Down, Ctrl j    | Navigate to bottom window                   |\n| Ctrl Up, Ctrl k      | Navigate to upper window                    |\n| Ctrl o               | New tab                                     |\n| ,,                   | Previous edited buffer                      |\n| tt                   | Toggle comments                             |\n| ,n                   | Opens VimFiler Explorer mode                |\n| ,b                   | Opens VimFiler in current buffer            |\n| Ctrl b               | Opens CtrlPBuffer                           |\n| Tab (in insert mode) | Triggers emmet expand (when appropriate)    |\n| ,f                   | Apply ALEFix with prettier (through eslint) |\n\n## Snippets\n\nSnippets are enabled and provided by [xptemplate](https://github.com/drmingdrmer/xptemplate).\n\nThe `ftplugin/*/*.xpt.vim` files are actually snippet definition files for\nxptemplate. Feel free to browse them or edit them in your own fork.\n\nIn this repository, they're written using two-spaces indent with semi-colon.\nThough it can be easily fixed after being replaced with tools like\n[prettier](https://github.com/prettier/prettier)\n\nSome snippets don't have semi colons as they are designed to be use, in some\nplace, where semi-colons are not desired. Such as `()` which expands to\nanonymous arrow functions.\n\nRight now, there's quite a few snippets tailored for JavaScript development\nusing es6 syntax and mocha definitions.\n\nAlso, huhe thanks to [torgeir/vim](https://github.com/torgeir/vim) for the\n`req` snippet, which replace and strip down the basename part of the required\nmodule. In addition to that, quite a few snippet (namely for mocha) have been\nborrowed from his repository.\n\n## Templates\n\nTemplates are enabled and provided by [vim-template](https://github.com/aperezdc/vim-template).\n\n\u003e This is a simple plug-in for Vim (and NeoVim) allowing to have template\nfiles per file type, which will be used as starting point when creating\nnew buffers. Template files may contain variables (|template-variables|),\nwhich are expanded at the time of buffer creation (see |template-usage|).\nThe main purpose of the templates is to add boilerplate code to new\nfiles, like C/C++ header guards, or license disclaimers.\n\nFew templates are defined in this repository, in the [./templates](./templates)\ndirectory.\n\n## Credits\n\nIt started as a fork of [quick-vim][], but have diverged quite a bit.\n\nvim/gvim config files based on [janus][] config. A good amount of vim goodies\nwere also taken from Derek's [vim-config][]\n\n**Thanks**: [quick-vim][], [vim-config][], [janus][], [nvie's vimrc][]\n\n[vim-config]: https://github.com/derekwyatt/vim-config/\n[janus]: http://github.com/carlhuda/janus\n[quick-vim]: https://github.com/brianleroux/quick-vim/\n[nvie's vimrc]: https://github.com/nvie/vimrc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmklabs%2Fvimfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmklabs%2Fvimfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmklabs%2Fvimfiles/lists"}