hello Bram,

this patch adds 'b:undo_indent' to 'runtime/indent/vim.vim'.

-- 
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- runtime/indent/vim.vim	2012-05-18 21:19:44.000000000 +0000
+++ ../vim.vim	2012-05-19 17:51:54.000000000 +0000
@@ -12,6 +12,8 @@
 setlocal indentexpr=GetVimIndent()
 setlocal indentkeys+==end,=else,=cat,=fina,=END,0\\
 
+let b:undo_indent = "setl indentkeys< indentexpr<"
+
 " Only define the function once.
 if exists("*GetVimIndent")
   finish
@@ -54,7 +56,7 @@
     if i >= 0
       let ind += &sw
       if strpart(line, i, 1) == '|' && has('syntax_items')
-            \ && synIDattr(synID(lnum, i, 1), "name") =~ '\(Comment\|String\)$' 
+            \ && synIDattr(synID(lnum, i, 1), "name") =~ '\(Comment\|String\)$'
         let ind -= &sw
       endif
     endif

Attachment: vim.vim
Description: application/wine-extension-vim

Raspunde prin e-mail lui