Merge pull request #163 from kiryph/feature-repeat-late
Add repeat.vim support to surround with LaTeX environment 'ys<>l'
This commit is contained in:
commit
772ab9587b
@ -212,10 +212,11 @@ function! s:wrap(string,char,type,removed,special)
|
||||
elseif newchar ==# 'l' || newchar == '\'
|
||||
" LaTeX
|
||||
let env = input('\begin{')
|
||||
if env != ""
|
||||
let s:input = env."\<CR>"
|
||||
let env = '{' . env
|
||||
let env .= s:closematch(env)
|
||||
echo '\begin'.env
|
||||
if env != ""
|
||||
let before = '\begin'.env
|
||||
let after = '\end'.matchstr(env,'[^}]*').'}'
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user