Add repeat.vim support to surround with LaTeX environment 'ys<>l'

This commit is contained in:
kiryph 2015-02-25 21:28:28 +01:00
parent ec579a5047
commit 605c12d7d2

View File

@ -212,10 +212,11 @@ function! s:wrap(string,char,type,removed,special)
elseif newchar ==# 'l' || newchar == '\'
" LaTeX
let env = input('\begin{')
let env = '{' . env
let env .= s:closematch(env)
echo '\begin'.env
if env != ""
let s:input = env."\<CR>"
let env = '{' . env
let env .= s:closematch(env)
echo '\begin'.env
let before = '\begin'.env
let after = '\end'.matchstr(env,'[^}]*').'}'
endif