I'm sorry, I'm noob in vim but how to comment with tcomment_vim? Here the debug info and some videos.
TCOMMENT: &ft = javascript => javascript
TCOMMENT: stx = jsString => javascriptString
TCOMMENT: ct = {'rxmid': '', 'rxend': '', 'commentstring': '// %s', 'commentstring_rx': '\%%(// %s\|/* %s */\)', 'mode': '', 'filetype': 'javascript', 'replacements': {'*/': {'subst': '|)}>#', 'guard_rx': '^\s*/\?\*'}, '/*': {'subst': '#<{(|', 'guard_rx': '^\s*/\?\*'}}, 'rxbeg': '\*\+'}
Videos showing use of gcc on insert mode.
But if I use, :TComment on the vim-command-terminal it works like charm. Only the shortcut, I can't use it.
And the last one, what is {motion} on the documentation of tcomment? gc{motion}
Note :
- I install it using vim-plug
Update
:map gc result :
x gc <Plug>TComment_gc
n gcb <Plug>TComment_gcb
n gcc <Plug>TComment_gcc
n gc9c <Plug>TComment_gc9c
n gc9 <Plug>TComment_gc9
n gc8c <Plug>TComment_gc8c
n gc8 <Plug>TComment_gc8
n gc7c <Plug>TComment_gc7c
n gc7 <Plug>TComment_gc7
n gc6c <Plug>TComment_gc6c
n gc6 <Plug>TComment_gc6
n gc5c <Plug>TComment_gc5c
n gc5 <Plug>TComment_gc5
n gc4c <Plug>TComment_gc4c
n gc4 <Plug>TComment_gc4
n gc3c <Plug>TComment_gc3c
n gc3 <Plug>TComment_gc3
n gc2c <Plug>TComment_gc2c
n gc2 <Plug>TComment_gc2
n gc1c <Plug>TComment_gc1c
n gc1 <Plug>TComment_gc1
n gc <Plug>TComment_gc
:map gc, what does Vim show you? Doesgc_work (with an underscore)? How aboutgcj? – filbranden May 24 '20 at 00:28gc_move the cursor to start of line,gcjmove the cursor 1 line to bottom, I think there are a problem with my gc – mandaputtra May 24 '20 at 00:59gccwork in the first character of the line? Like^gcc? – filbranden May 24 '20 at 01:10gcprefix, though looking at your vimrc or maps you listed, I can't really tell what it might be... – filbranden May 24 '20 at 04:17