vim-lessmess : Removes trailing white-space, fix mixed-indent and remove empty lines at the EOF
script karma |
Rating 2/2,
Downloaded by 958 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Mohamed Boughaba |
|
script type |
ftplugin |
|
description |
Lessmess: ViM even better whitespaces Plugin
https://github.com/mboughaba/vim-lessmess
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 |
Instalation
(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 |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.227.107.69
|