csscomb / vim-csscomb

CSScomb plugin for Vim. Tool for sorting CSS properties in specific order.
csscomb.com
134 stars 18 forks source link

Support csscomb.js #6

Closed tonyganch closed 9 years ago

tonyganch commented 10 years ago

We have a node version of csscomb ready. It will be nice if this plugin is updated by the time of public release.

If someone starts working on this task, please leave a comment. Keep in mind that current (php) version should stay available for download. The easiest way is to make a release before making any changes. Thank you.

raine commented 9 years ago

For anyone looking, here's an easy way to use csscomb installed with npm. No plugins needed.

Put this in .vimrc (or wherever appropriate) and use F5 to run buffer through csscomb.

It will naturally use the project .csscomb.json if available.

autocmd FileType scss,css nnoremap <buffer> <F5> :call CSScomb()<CR>
function! CSScomb()
  execute "silent !csscomb " . expand('%')
  redraw!
endfunction
faceleg commented 9 years ago

See #9 for my PR

faceleg commented 9 years ago

This should be closed, @tonyganch?

tonyganch commented 9 years ago

@faceleg, yes! Do you have twitter?

faceleg commented 9 years ago

Yep, it's @codeofinterest