diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 7b49bed..7df5afa 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -612,8 +612,10 @@ function s:AppendCommentToLine() if lenRight > 0 let leftMoveAmount = lenRight - 1 execute ":normal! " . leftMoveAmount . "h" + startinsert + else + startinsert! endif - startinsert endfunction " Function: s:CommentBlock(top, bottom, lSide, rSide, forceNested ) {{{2