jbgutierrez / vim-better-comments

Easily highlight human-friendly comments in your code!
MIT License
114 stars 9 forks source link

Create Language Aliases #4

Open kickinbahk opened 4 years ago

kickinbahk commented 4 years ago

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 commented 4 years ago

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?