Skip to content

Commit

Permalink
Add handling of C-style comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aster89 committed Nov 19, 2020
1 parent f51a26d commit e9fece3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/surround.vim
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ function! s:wrap(string,char,type,removed,special)
elseif newchar ==# ':'
let before = ':'
let after = ''
elseif newchar ==# 'c'
let before = '/*'
let after = '*/'
elseif newchar =~# "[tT\<C-T><]"
let dounmapp = 0
let dounmapb = 0
Expand Down

0 comments on commit e9fece3

Please sign in to comment.