summaryrefslogtreecommitdiff
path: root/runtime/indent/css.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent/css.vim')
-rw-r--r--runtime/indent/css.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/indent/css.vim b/runtime/indent/css.vim
index 2a09566e1..f85bb05ac 100644
--- a/runtime/indent/css.vim
+++ b/runtime/indent/css.vim
@@ -15,6 +15,8 @@ setlocal nosmartindent
if exists("*GetCSSIndent")
finish
endif
+let s:keepcpo= &cpo
+set cpo&vim
function s:prevnonblanknoncomment(lnum)
let lnum = a:lnum
@@ -74,3 +76,6 @@ function GetCSSIndent()
return indent(pnum) + s:count_braces(pnum, 1) * &sw
\ - s:count_braces(v:lnum, 0) * &sw
endfunction
+
+let &cpo = s:keepcpo
+unlet s:keepcpo