{"id":13438123,"url":"https://github.com/racer-rust/vim-racer","last_synced_at":"2025-04-05T14:03:47.693Z","repository":{"id":53156315,"uuid":"42528872","full_name":"racer-rust/vim-racer","owner":"racer-rust","description":"Racer support for Vim","archived":false,"fork":false,"pushed_at":"2021-04-04T01:56:30.000Z","size":126,"stargazers_count":634,"open_issues_count":5,"forks_count":43,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T13:23:37.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/racer-rust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-15T15:38:05.000Z","updated_at":"2025-02-10T22:16:58.000Z","dependencies_parsed_at":"2022-09-13T18:41:14.934Z","dependency_job_id":null,"html_url":"https://github.com/racer-rust/vim-racer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racer-rust%2Fvim-racer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racer-rust%2Fvim-racer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racer-rust%2Fvim-racer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racer-rust%2Fvim-racer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/racer-rust","download_url":"https://codeload.github.com/racer-rust/vim-racer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345850,"owners_count":20924102,"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-07-31T03:01:03.055Z","updated_at":"2025-04-05T14:03:47.672Z","avatar_url":"https://github.com/racer-rust.png","language":"Vim script","readme":"# Vim Racer Plugin\n\nThis plugin allows vim to use [Racer](http://github.com/phildawes/racer) for Rust code completion and navigation.\n\n**Note**: Active development on vim-racer has stopped. The only future changes\nwill be bug fixes.  You should use LSP plugins(vim-lsp, nvim-lspconfig)\ninstead.\n\n\n## Installation\n\n1. Build / Install [Racer](http://github.com/phildawes/racer)\n\n2. Install using Pathogen, Vundle or NeoBundle. Or, copy\n   `ftplugin/rust_racer.vim` into your `~/.vim/plugin` directory.\n\n  Vundle users:\n  ```\n  Plugin 'racer-rust/vim-racer'\n  ```\n\n  NeoBundle users:\n  ```\n  NeoBundle 'racer-rust/vim-racer'\n  ```\n\n  vim-plug users:\n  ```\n  Plug 'racer-rust/vim-racer'\n  ```\n\n  Pathogen users:\n  ```\n  git clone --depth=1 https://github.com/racer-rust/vim-racer.git ~/.vim/bundle/vim-racer\n  ```\n\n3. Add `g:racer_cmd` to your `.vimrc`. It contains full path to `racer`\n   executable file.  Variable `g:racer_cmd` is optional. You do not need to use\n   this variable if the executable file is in a directory that is specified in\n   `$PATH`, else you should specified full path to `racer` executable binary\n   file in this `g:racer_cmd`. Also it's worth turning on 'hidden' mode for\n   buffers otherwise you need to save the current buffer every time you do a\n   goto-definition. E.g.:\n\n  ```\n  set hidden\n  let g:racer_cmd = \"/home/user/.cargo/bin/racer\"\n  ```\n\n4. If you want completions to show the complete function definition (e.g. its\n   arguments and return type), enable the experimental completer:\n\n  ```\n  let g:racer_experimental_completer = 1\n  ```\n\n5. If you want to insert the parenthesis in the completion:\n\n  ```\n  let g:racer_insert_paren = 1\n  ```\n\n## Example Mappings\n\nvim-racer enables `C-x-C-o` to search for completions and provides several\n`\u003cPlug\u003e` mappings for source code navigation. These mappings are not enabled by\ndefault but you can easily use them by adding the following lines to your\n`.vimrc` (Or `init.vim` in case of Neovim).\n\nFor example, with the following mappings you can navigate to the identifier\nunder the cursor and open it on the current buffer, on an horizontal or\nvertical split, on a new tab, or go straight to the documentation:\n\n```\naugroup Racer\n    autocmd!\n    autocmd FileType rust nmap \u003cbuffer\u003e gd         \u003cPlug\u003e(rust-def)\n    autocmd FileType rust nmap \u003cbuffer\u003e gs         \u003cPlug\u003e(rust-def-split)\n    autocmd FileType rust nmap \u003cbuffer\u003e gx         \u003cPlug\u003e(rust-def-vertical)\n    autocmd FileType rust nmap \u003cbuffer\u003e gt         \u003cPlug\u003e(rust-def-tab)\n    autocmd FileType rust nmap \u003cbuffer\u003e \u003cleader\u003egd \u003cPlug\u003e(rust-doc)\n    autocmd FileType rust nmap \u003cbuffer\u003e \u003cleader\u003egD \u003cPlug\u003e(rust-doc-tab)\naugroup END\n```\n","funding_links":[],"categories":["Development tools","Vim Script","开发工具 Development tools","开发工具","Vim"],"sub_categories":["IDEs","编译器 IDEs","集成开发环境(IDE)","编辑器 IDEs","Chess :chess_pawn:"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracer-rust%2Fvim-racer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fracer-rust%2Fvim-racer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracer-rust%2Fvim-racer/lists"}