summaryrefslogtreecommitdiff
path: root/runtime/indent/rst.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent/rst.vim')
-rw-r--r--runtime/indent/rst.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/indent/rst.vim b/runtime/indent/rst.vim
index e6fe2b554..f936c9b2f 100644
--- a/runtime/indent/rst.vim
+++ b/runtime/indent/rst.vim
@@ -1,7 +1,7 @@
" Vim indent file
-" Language: reStructuredText Documentation Format
+" Language: reStructuredText Documentation Format
" Maintainer: Nikolai Weibull <now@bitwi.se>
-" Latest Revision: 2006-04-19
+" Latest Revision: 2006-12-20
if exists("b:did_indent")
finish
@@ -10,6 +10,7 @@ let b:did_indent = 1
setlocal indentexpr=GetRSTIndent()
setlocal indentkeys=!^F,o,O
+setlocal nosmartindent
if exists("*GetRSTIndent")
finish
@@ -40,7 +41,7 @@ function GetRSTIndent()
let ind = ind - 2
elseif line =~ '^\s*\d\+\.\s'
let ind = ind - matchend(substitute(line, '^\s*', '', ''),
- \ '\d\+\.\s\+')
+ \ '\d\+\.\s\+')
elseif line =~ '^\s*\.\.'
let ind = ind - 3
else