I am trying to use EnhancedCommentify plugin for vim and mostly using C. However I can't figure out the issue but when I comment/uncomment it uses (* ---- *) instead of /* ----- */. I tried to change the plugin itself, it didn't change anything. I also verified wit :set filetype? that vim recognizes the C code, and it does. I even looked for the languages that use (* *) for comment and simply removed the lines from the plugin : issue is still there !
It works fine for fortran, python and .vimrc however...
I am kinda puzzled at this, anyone has any idea ?
Also, the plugin did output an error when first using it :
Erreur détectée en traitant /home/jacques/.vim/plugin/EnhancedCommentify-2.3/ftplugin/php_enhcomm.vim : ligne 6 : E117: Fonction inconnue : EnhCommentifyFallback4Embedded
I opened the file and commented the line as i seemed to me it's only relevant for php, but maybe I am wrong...
On another note, I am also trying to remap the smart comment but it seems that I fail, here is the vimrc for now
vmap <unique> <C-c> <Plug>VisualComment nmap <unique> <C-c> <Plug>Comment imap <unique> <C-c> <ESC><Plug>Comment vmap <unique> <F3> <Plug>VisualDeComment nmap <unique> <F3> <Plug>DeComment imap <unique> <F3> <ESC><Plug>DeComment
and i tried with "Guess" instead of "Comment" but it didn't seem to work. I remember doing this a long time ago but can't find my .vimrc from back then...
vmap VisualComment nmap Comment imap Comment vmap VisualDeComment nmap DeComment imap DeComment