tcomment_vim icon indicating copy to clipboard operation
tcomment_vim copied to clipboard

Can not uncomment for lua in some case

Open nonkr opened this issue 9 years ago • 3 comments

The sample lua script is like following:

#!/usr/bin/lua

local a;
 local b;
  local b;
   local b;

when I use gc to comment the variables line by line, everything is fine as following:

#!/usr/bin/lua

-- local a;
--  local b;
  -- local b;
   -- local b;

BUT, if I uncomment it line by line, somethings are wrong:

#!/usr/bin/lua

-- -- local a;
-- --  local b;
  local b;
   local b;

nonkr avatar Mar 11 '16 04:03 nonkr

The example demonstrates an interesting corner case at "local b" but other than that it works ok for me. Could you please explain what keys you press, which version you use, whether you tried it with vanilla vim, and which options you have set (:set). Thanks.

tomtom avatar Mar 11 '16 08:03 tomtom

image

nonkr avatar Mar 16 '16 05:03 nonkr

Sorry, I cannot reproduce the behaviour. Which version of vim do you use? Can you verify the problem with vim -u NONE -U NONE and

set nocp
filetype plugin indent on
syntax on

and only the tcomment plugin loaded. You have to give me more details.

tomtom avatar Mar 16 '16 18:03 tomtom