diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-10 18:32:52 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-10 18:32:52 +0000 |
commit | 335437bb249a46c51109251ff50f1b9aa8828fc4 (patch) | |
tree | 7abe7d29b30035f0f04977ff4e70562a9bef2f9a /runtime/indent | |
parent | 79166c430b3bb0e15f1b96933636897b5a02a816 (diff) | |
download | vim-git-335437bb249a46c51109251ff50f1b9aa8828fc4.tar.gz |
updated for version 7.1b
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/rst.vim | 7 | ||||
-rw-r--r-- | runtime/indent/yacc.vim | 5 |
2 files changed, 7 insertions, 5 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 diff --git a/runtime/indent/yacc.vim b/runtime/indent/yacc.vim index 597a2cc83..2ab7d7b38 100644 --- a/runtime/indent/yacc.vim +++ b/runtime/indent/yacc.vim @@ -1,7 +1,7 @@ " Vim indent file -" Language: YACC input file +" Language: YACC input file " Maintainer: Nikolai Weibull <now@bitwi.se> -" Latest Revision: 2006-04-19 +" Latest Revision: 2006-12-20 " Only load this indent file when no other was loaded. if exists("b:did_indent") @@ -12,6 +12,7 @@ let b:did_indent = 1 setlocal indentexpr=GetYaccIndent() setlocal indentkeys=!^F,o,O +setlocal nosmartindent " Only define the function once. if exists("*GetYaccIndent") |