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 == '\'
|
elseif newchar ==# 'l' || newchar == '\'
|
||||||
" LaTeX
|
" LaTeX
|
||||||
let env = input('\begin{')
|
let env = input('\begin{')
|
||||||
let env = '{' . env
|
|
||||||
let env .= s:closematch(env)
|
|
||||||
echo '\begin'.env
|
|
||||||
if env != ""
|
if env != ""
|
||||||
|
let s:input = env."\<CR>"
|
||||||
|
let env = '{' . env
|
||||||
|
let env .= s:closematch(env)
|
||||||
|
echo '\begin'.env
|
||||||
let before = '\begin'.env
|
let before = '\begin'.env
|
||||||
let after = '\end'.matchstr(env,'[^}]*').'}'
|
let after = '\end'.matchstr(env,'[^}]*').'}'
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user