How to disable automatic comment insertion in Vim? Add to ~/.vimrc: au FileType c,cpp setlocal comments-=:// comments+=f:// More: http://vim.wikia.com/wiki/Disable_automatic_comment_insertion Read more: Vim: Pasting text as is in Vim in Paste Mode Profiling Vim to Find Out Which Plugin Makes Vim Slow How to disable an option with a bash script? How to disable all swaps on Linux How to totally disable firewall or iptables on Fedora 20 How to disable the coredump function of systemd on Linux? How to disable laptop’s internal keyboard on Linux? How to disable PHP short open tags?