Defining functions
function CommentLine()
:s@.*@<!--&-->@
endfunction
function UnCommentLine()
:s@<!--\(.*\)-->@\1@
endfunction
Calling functions
call CommentLine()
Mapping Functions
nnoremap \kc :call CommentLine()<cr>
vnoremap \kc :call CommentLine()<cr>