File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ For more info, online demo and tests see [csscomb.com](http://csscomb.com/)
10
10
11
11
## The Requirements
12
12
13
- CSScomb is written in pure PHP, without any external libraries or dependencies.
14
- See details at [ wiki] ( https://github.com/miripiruni/CSScomb/wiki/Requirements ) .
13
+ CSScomb is written in pure JavaScript. Install with:
15
14
15
+ ``` BASH
16
+ npm install -g csscomb
17
+ ```
16
18
17
19
## Installation
18
20
@@ -29,6 +31,16 @@ Add this to .vimrc:
29
31
Bundle 'git://github.com/miripiruni/CSScomb-for-Vim.git'
30
32
```
31
33
34
+ ### With NeoBundle
35
+ Add this to .vimrc:
36
+ ```
37
+ NeoBundle 'faceleg/vim-csscomb', {
38
+ \ 'build': {
39
+ \ 'unix': 'npm install -g csscomb',
40
+ \ 'mac': 'npm install -g csscomb'
41
+ \ }}
42
+ ```
43
+
32
44
### Manual without plugins manager
33
45
```
34
46
git clone https://github.com/miripiruni/CSScomb-for-Vim.git csscomb
@@ -40,3 +52,12 @@ Vim command:
40
52
```
41
53
:CSScomb
42
54
```
55
+
56
+ ## Suggested Configuration
57
+
58
+ ``` VIML
59
+ "mnemonic: 'beatify css'
60
+ autocmd FileType css noremap <buffer> <leader>bc :CSScomb<CR>
61
+ " Automatically comb your CSS on save
62
+ autocmd BufWritePre,FileWritePre *.css,*.scss,*.sass silent! :CSScomb<CR>
63
+ ```
You can’t perform that action at this time.
0 commit comments