sponsor Vim development Vim logo Vim Book Ad

vim-java-ununsed-imports : Allows showing and removing unused imports in a java file.

 script karma  Rating 46/19, Downloaded by 1592  Comments, bugs, improvements  Vim wiki

created by
Ammar Khaku
 
script type
utility
 
description
A simple vim plugin to show unused imports in a java file. Built for purely selfish reasons, open-sourced to help others.

If you like this project, please star https://github.com/akhaku/vim-java-unused-imports/

Usage

In normal mode:

:UnusedImports " highlight all unused imports
:UnusedImportsReset " clear the highlights
:UnusedImportsRemove " remove all unused imports
 
install details
This plugin works with pathogen. Simply clone this repository to a subfolder within bundle/. Alternatively, copy unused-imports.vim to plugin/
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-java-unused-imports.zip 1.2.0 2020-08-25 7.0 Ammar Khaku Default highlight to "Error" highlight and allow customization
vim-java-unused-imports.zip 1.1.1 2019-02-16 7.0 Ammar Khaku https://github.com/akhaku/vim-java-unused-imports/issues/19
vim-java-unused-imports.zip 1.1.0 2018-10-15 7.0 Ammar Khaku Added support for kotlin top level declaration and for static imports
vim-java-unused-imports.zip 1.0.0 2016-06-19 7.0 Ammar Khaku Initial upload
ip used for rating: 216.73.216.132

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github