Simple CSS align (SCSSA) : Align selected CSS properties
| script karma
Downloaded by 68
Comments, bugs, improvements
script versions (upload new version)
|Very very simple plugin which provides only one command:
To use it, select some lines containing CSS properties, then use the command.
It will align them. That's all :-)
FOR A COMPLETE DOCUMENTATION, READ THE FILE HEADER:
ALL IS EXPLAINED AND PROBABLY MORE UP2DATE THAN ON THIS PAGE!
If you want to be sure having the last version of this plugin, check my github repository (in case of I forgot to update here):
On github, you will also find my VIm configuration. Feel free to extract parts of code you need from my sources.
This could be better but I use those for my daily works without problems and it will be improved over the time.
I always miss time to refactor and clean the code, so if you want to help, you're welcome ;-)
- Drop this file to your plugin directory of vim.
- Map a key to call the "SCSSA" command.
To do it, add this to your .vimrc:
vmap YOURKEY :SCSSA<CR>
(where YOURKEY is the key you've choosed)
Example: vmap + :SCSSA<CR>
- Sort your properties in the same time.
Add to your keymapping "gv!YOURSORTCOMMAND<CR>".
Example: vmap + :SCSSA<CR>gv!sort<CR>
(this exampe use the shell command "sort").
Click on the package to download.
ip used for rating: 18.104.22.168