vim-better-comments icon indicating copy to clipboard operation
vim-better-comments copied to clipboard

Create Language Aliases

Open kickinbahk opened this issue 6 years ago • 1 comments

In such cases, you can overcome the mismatch providing a dictionary of aliases:

let g:bettercomments_language_aliases = { 'javascript': 'js' }

I am new to vim and trying to figure out how to add this or where I need to add it. Could you elaborate a bit more on what I need to do to get this working?

Thanks!

kickinbahk avatar Jan 10 '20 17:01 kickinbahk

Here is what I am trying to do:

let g:bettercomments_language_aliases = { 
   'javascript': 'js',
   '*.js.liquid': 'js',
   '*.scss.liquid': 'css',
   '*.css.liquid': 'css',
   '*.liquid': 'html'
" }

Do I need to do it all in one line?

kickinbahk avatar Jan 10 '20 17:01 kickinbahk