Replaced raw CTRL-V with \<C-V>

This commit is contained in:
Benji Fisher 2011-12-12 10:30:17 -05:00
parent 22e798edf5
commit f198e9ffce

View File

@ -1049,7 +1049,7 @@ function! NERDComment(isVisual, type) range
let forceNested = (a:type == 'nested' || g:NERDDefaultNesting)
if a:type == 'norm' || a:type == 'nested'
if a:isVisual && visualmode() == ""
if a:isVisual && visualmode() == "\<C-V>"
call s:CommentBlock(firstLine, lastLine, firstCol, lastCol, forceNested)
elseif a:isVisual && visualmode() == "v" && (g:NERDCommentWholeLinesInVMode==0 || (g:NERDCommentWholeLinesInVMode==2 && s:HasMultipartDelims()))
call s:CommentRegion(firstLine, firstCol, lastLine, lastCol, forceNested)