aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent/xf86conf.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent/xf86conf.vim')
-rw-r--r--runtime/indent/xf86conf.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/indent/xf86conf.vim b/runtime/indent/xf86conf.vim
index 7c3ea15d98..5a8bc0fec1 100644
--- a/runtime/indent/xf86conf.vim
+++ b/runtime/indent/xf86conf.vim
@@ -26,11 +26,11 @@ function GetXF86ConfIndent()
let ind = indent(lnum)
if getline(lnum) =~? '^\s*\(Sub\)\=Section\>'
- let ind = ind + &sw
+ let ind = ind + shiftwidth()
endif
if getline(v:lnum) =~? '^\s*End\(Sub\)\=Section\>'
- let ind = ind - &sw
+ let ind = ind - shiftwidth()
endif
return ind