{"id":13479819,"url":"https://github.com/Galooshi/vim-import-js","last_synced_at":"2025-03-27T10:30:48.206Z","repository":{"id":49570384,"uuid":"56029606","full_name":"Galooshi/vim-import-js","owner":"Galooshi","description":"Vim plugin for ImportJS","archived":false,"fork":false,"pushed_at":"2021-02-23T13:55:11.000Z","size":150,"stargazers_count":159,"open_issues_count":6,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-12T06:03:14.926Z","etag":null,"topics":["importjs","javascript","vim","vim-plugin"],"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/Galooshi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-12T03:59:30.000Z","updated_at":"2025-02-01T15:31:25.000Z","dependencies_parsed_at":"2022-09-09T16:40:25.003Z","dependency_job_id":null,"html_url":"https://github.com/Galooshi/vim-import-js","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/Galooshi%2Fvim-import-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Galooshi%2Fvim-import-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Galooshi%2Fvim-import-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Galooshi%2Fvim-import-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Galooshi","download_url":"https://codeload.github.com/Galooshi/vim-import-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245826714,"owners_count":20678844,"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":["importjs","javascript","vim","vim-plugin"],"created_at":"2024-07-31T16:02:23.454Z","updated_at":"2025-03-27T10:30:47.881Z","avatar_url":"https://github.com/Galooshi.png","language":"Vim script","readme":"ImportJS helps you import JavaScript dependencies. Hit a keyboard shortcut\nto automatically add `import x from 'y'` statements at the top of the file.\n\n![Demo of ImportJS in action](https://raw.github.com/galooshi/vim-import-js/master/demo.gif)\n\n\n# Installation\n\nImportJS is meant to be used as a Pathogen plugin. Just `git clone` this repo\ninto the `bundles` folder and you are good to go!\n```\ngit clone git@github.com:Galooshi/vim-import-js.git ~/.vim/bundle/vim-import-js\n```\n\n## Dependencies\n\nImportJS works in [Vim](http://www.vim.org/) (version 8 and later) and\n[Neovim](https://neovim.io/).\n\nYou need import-js installed globally to use this plugin.\n\n```sh\nnpm install -g import-js\n```\n\n## Default mappings\n\nBy default, ImportJS attempts to set up the following mappings:\n\nMapping     | Command               | Description\n------------|-----------------------|---------------------------------------------------------------------\n`\u003cLeader\u003ej` | `:ImportJSWord`       | Import the module for the variable under the cursor.\n`\u003cLeader\u003ei` | `:ImportJSFix`        | Import any missing modules and remove any modules that are not used.\n`\u003cLeader\u003eg` | `:ImportJSGoto`       | Go to the module of the variable under the cursor.\n\n## Configuration\nFor `import-js` configuration see https://github.com/Galooshi/import-js#configuration\n\n## Troubleshooting\n\nIf you run into issues when using the plugin, adding some logging can help.\nAfter starting up vim, and before you've imported anything, run this command:\n\n```\n:call ch_logfile('channel_log.txt', 'w')\n```\n\nAfter this, you should get useful information in `channel_log.txt`.\n","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGalooshi%2Fvim-import-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGalooshi%2Fvim-import-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGalooshi%2Fvim-import-js/lists"}