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 Oct 16, 2021
1 parent aeb9332 commit 16b8868
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 16b8868

Please sign in to comment.