tpope / vim-commentary

commentary.vim: comment stuff out
http://www.vim.org/scripts/script.php?script_id=3695
5.9k stars 214 forks source link

Custom Comment for fortran #76

Closed schmoni closed 8 years ago

schmoni commented 8 years ago

Hi, I am quite new to vim and after watching some tutorials, your plugin seems to be very useful to me. I use fortran as my primary language, files are named *.f90 Unfortunately, your plugin does not automatically support commentary in this case. It should put (/remove) a ! at the beginning of the line in question. In your FAQ it says to adjust commentstring: "autocmd FileType apache setlocal commentstring=#\ %s" where do i add this line of code, what do i have to replace "FileType" with and what do i set commentstring to? I would be very thankful for your help. Greetings from Hannover, Germany

musoke commented 8 years ago

I'm surprised by this issue -- I use vim-commentary with Fortran and don't recall having to do anything to get it working. Does your installation work with other filetypes?

schmoni commented 8 years ago

Ok, apparently I did something wrong yesterday. I tried it again today and it works just fine. Thanks :)