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

Commenting in CMakeLists.txt #94

Closed NamespaceNick closed 6 years ago

NamespaceNick commented 6 years ago

Apologies if this was somewhere else that I didn't see, but how do I enable the '#' comment style for the particular file 'CMakeLists.txt'?

Thank you for any help! I'm a bit new at vim/vim configuration, so it's really appreciated!

xaizek commented 6 years ago

See FAQ in the README:

autocmd FileType cmake setlocal commentstring=#\ %s
kiryph commented 6 years ago

Since 24 Dec 2017 commentstring is set in https://github.com/vim/vim/blob/master/runtime/ftplugin/cmake.vim No need for a user to add a line to vimrc when using a current vim.

IMHO, this issue should be closed.