I'm trying to add include an unsupported filetype,
gf, with vim commentary. The comments are simple, just prepend
-- to any line, as in the Haskell tradition.
According to the vim-commentary git,
Relax! You just have to adjust 'commentstring': autocmd FileType apache setlocal commentstring=#\ %s
If I try the following, I still get
/*...*/ instead of
autocmd FileType gf setlocal commentstring=--\ %s
The adjust commentstring is still an ambiguous adjustment for those unversed with vim syntax. I'm not sure what where the syntax after comment string begins and ends, for instance, what does %s mean? Also, perhaps unrelated, how do I update the vim environment without closing all windows and opening a fresh session. For instance, the following yields an error:
$ source ~/.vimrc autocmd: command not found Command 'map' not found, but there are 28 similar ones. -bash: /home/wmacmil/.vimrc: line 5: syntax error near unexpected token `;;' -bash: /home/wmacmil/.vimrc: line 5: `noremap ;; ;'
Any references to documentation for the above issues are also welcome.