From 4760e57514ad91541bc3d05f57bd6ac90646a8cc Mon Sep 17 00:00:00 2001 From: Alexander Alzate Date: Thu, 26 May 2016 00:24:47 -0500 Subject: [PATCH] Start Insertion in Append Mode When no Right Delim (#234) --- plugin/NERD_commenter.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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