From fc327ad19dc95e6092040b435a2f4d14b73c6cfe Mon Sep 17 00:00:00 2001 From: netcookies Date: Sat, 17 Sep 2016 15:48:51 +0800 Subject: [PATCH 1/3] Update csscomb.vim fix: fomated file has fewer lines than before --- plugin/csscomb.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/csscomb.vim b/plugin/csscomb.vim index dae1b6b..d743d31 100644 --- a/plugin/csscomb.vim +++ b/plugin/csscomb.vim @@ -16,6 +16,10 @@ function! g:CSScomb(count, line1, line2) echoerr split(systemOutput, "\n")[1] else let lines = readfile(tempFile) + if len(lines) Date: Sat, 17 Sep 2016 16:02:25 +0800 Subject: [PATCH 2/3] Update csscomb.vim don't put the deleted lines in clipboard --- plugin/csscomb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/csscomb.vim b/plugin/csscomb.vim index d743d31..c8713ab 100644 --- a/plugin/csscomb.vim +++ b/plugin/csscomb.vim @@ -18,7 +18,7 @@ function! g:CSScomb(count, line1, line2) let lines = readfile(tempFile) if len(lines) Date: Sat, 17 Sep 2016 16:42:57 +0800 Subject: [PATCH 3/3] Update csscomb.vim Use Local file --- plugin/csscomb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/csscomb.vim b/plugin/csscomb.vim index c8713ab..55b331e 100644 --- a/plugin/csscomb.vim +++ b/plugin/csscomb.vim @@ -11,7 +11,7 @@ function! g:CSScomb(count, line1, line2) let tempFile = tempname() . '.' . &filetype call writefile(content, tempFile) - let systemOutput = system('csscomb ' . shellescape(tempFile)) + let systemOutput = system('csscomb -c ~/.csscomb.json ' . shellescape(tempFile)) if len(systemOutput) echoerr split(systemOutput, "\n")[1] else