summaryrefslogtreecommitdiffstats
path: root/runtime/indent/rst.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-05-10 18:32:52 +0000
committerBram Moolenaar <Bram@vim.org>2007-05-10 18:32:52 +0000
commit335437bb249a46c51109251ff50f1b9aa8828fc4 (patch)
tree7abe7d29b30035f0f04977ff4e70562a9bef2f9a /runtime/indent/rst.vim
parent79166c430b3bb0e15f1b96933636897b5a02a816 (diff)
updated for version 7.1b
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 e6fe2b554d..f936c9b2f6 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