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

Python comment, good on windows, but with C style on Mac M1. #153

Closed sloppydevil closed 2 years ago

sloppydevil commented 2 years ago

two laptops: one workstation windows, one Mac M1. with the same config; when use gcc to comment python files:

note: I checked filetype, both good showing "filetype=python".

tpope commented 2 years ago

Sounds like you might be missing filetype plugin indent on.

DexterAntonio commented 2 years ago

I had this issue today. It is essential to put filetype plugin indent on in your ~/.vimrc file. Running the command filetype plugin indent on after starting up vim will not resolve the commenting issue with Python.