I'm using vi(m) to edit a shell script and when I insert a comment and type , the new line came with a comment already.
How can I disable it ?
Ex :
# When I type enter, the comment simbol # below is inserted automaticaly.
#
Go to the line from which you want to start commenting. Then, press ctrl + v , this will enable the visual block mode.
Another method is to use Visual mode. Navigate to the line you wish to comment out and press CTRL + V to enter Visual mode. Use the up and down arrow keys to highlight the lines you wish to uncomment. Once selected, press x to remove the comments.
I was finding the same answer, try
:set paste
this may help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With