scriptencoding=utf-8 set mouse=a set tags=./tags,../tags,../../tags,../../../tags,tags function! Komment() if getline(".") =~ '\/\*' let hls=@/ s/^\/\*// s/*\/$// let @/=hls else let hls=@/ s/^/\/*/ s/$/*\// let @/=hls endif endfunction function! C_comment() let hls=@/ s/^/\/\// let @/=hls endfunction function! C2_comment() let hls=@/ s/^/"/ let @/=hls endfunction function! C3_comment() let hls=@/ s/^/#/ let @/=hls endfunction function! HTML_comment() let hls=@/ s/^/ / let @/=hls endfunction function! UNcomment() let hls=@/ if getline(".") =~ '\/\/' s/^\/\/// "for c elseif getline(".") =~ '\"' s/^"// elseif getline(".") =~ '#' s/^#// elseif getline(".") =~ '#$' s/^#$/$/ endif let @/=hls endfunction map ,/ :call C_comment() map ,\ :call Komment() map ," :call C2_comment() map ,# :call C3_comment() map ,...