sponsor Vim development Vim logo Vim Book Ad

Simple CSS align (SCSSA) : Align selected CSS properties

 script karma  Rating 0/0, Downloaded by 479  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").
 

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
SCSSA.vim 1.0 2012-08-08 7.0 Sébastien Initial upload
ip used for rating: 54.162.69.45

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.
   
OSDN