Created
December 14, 2012 07:39
-
-
Save netj/4283455 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tree e6819163e76264f778efe7fcb480d0f108d3aaf5 | |
parent d2771a2c3e23bedf2018df1519b560873a0b35eb | |
author Jaeho Shin <netj@sparcs.org> Thu Dec 13 22:57:44 2012 -0800 | |
committer Jaeho Shin <netj@sparcs.org> Thu Dec 13 22:57:44 2012 -0800 | |
Fixed backslash handling in environment Change | |
diff --git a/ftplugin/latex-suite/envmacros.vim b/ftplugin/latex-suite/envmacros.vim | |
index edf97f7..3e1db37 100644 | |
--- a/ftplugin/latex-suite/envmacros.vim | |
+++ b/ftplugin/latex-suite/envmacros.vim | |
@@ -769,17 +769,17 @@ if g:Tex_PromptedEnvironments != '' | |
let start_line = line('.') | |
let start_col = virtcol('.') | |
- if a:env == '[' | |
+ if index(['[', '\[', '$$'], a:env) != -1 | |
if b:DoubleDollars == 0 | |
- let first = '\\[' | |
- let second = '\\]' | |
+ let first = '\[' | |
+ let second = '\]' | |
else | |
let first = '$$' | |
let second = '$$' | |
endif | |
else | |
- let first = '\\begin{' . a:env . '}' | |
- let second = '\\end{' . a:env . '}' | |
+ let first = '\begin{' . a:env . '}' | |
+ let second = '\end{' . a:env . '}' | |
endif | |
if b:DoubleDollars == 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment