sponsor Vim development Vim logo Vim Book Ad

vim-lessmess : Removes trailing white-space, fix mixed-indent and remove empty lines at the EOF

 script karma  Rating 1/1, Downloaded by 58    Comments, bugs, improvements  Vim wiki

created by
Mohamed Boughaba
script type
Lessmess: ViM even better whitespaces Plugin


This plugin is capable of doing the following things for you:

Remove trailing white-spaces at the end of a line;
Fix mixed-indent, in other words, replace all sequences of 'Tab' character with new string of white-space;
Remove empty lines at the end of the file;
By default the plugin does all of the above when you save a file, but this can be disabled to be able to execute clean-up on demand only. Additionally, The plugin can be configuration to request user confirmation before removing white-spaces.
install details

(natively) Using ViM 8 packages
First, create a directory structure representing a plugin-group, say whitespace, as follows:

mkdir -p ~/.vim/pack/whitespace/start/
Next, clone (or alternatively, download the zip, and unzip) the plugins you want to install inside the start directory:

cd ~/.vim/pack/whitespace/start/
git clone https://github.com/mboughaba/vim-lessmess.git
git clone https://github.com/mboughaba/vim-lessmess.git

Using Vundle
First, declare the plugin in you .vimrc
Plugin 'mboughaba/vim-lessmess'
Then run plugin install command:PluginInstall

Using Plug
First, declare the plug in you .vimrc
Plug 'mboughaba/vim-lessmess'
Then run plug install command :PlugInstall

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-lessmess-1.1.0.tar.gz v1.1.0 2017-11-28 7.2 Mohamed Boughaba The plugin now support confirmation. By default the feature is disabled.
Once enabled, the user will be asked before proceeding with the white-space removal.
vim-lessmess-1.0.0.tar.gz v1.0.0 2017-11-28 7.2 Mohamed Boughaba Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo