Simple CSS align (SCSSA) : Align selected CSS properties
script karma |
Rating 0/0,
Downloaded by 573 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Sébastien |
|
script type |
utility |
|
description |
Very very simple plugin which provides only one command:
:SCSSA
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):
https://github.com/webastien/vim/blob/master/vim/plugin/SCSSA.vim
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 ;-) |
|
install details |
Required:
- Drop this file to your plugin directory of vim.
Optional:
- 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>
Eventually:
- 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"). |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.14.85
|