Skip to content

Commit

Permalink
Merge pull request #163 from kiryph/feature-repeat-late
Browse files Browse the repository at this point in the history
Add repeat.vim support to surround with LaTeX environment 'ys<>l'
  • Loading branch information
tpope committed Mar 15, 2015
2 parents ec579a5 + 605c12d commit 772ab95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin/surround.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 772ab95

Please sign in to comment.