On 28/10/11 17:36, Michael D. Berger wrote:
In a previous thread I read that I could disable automatically
commenting of the next line with:

    :set formatoptions-=ro

This works, but I have to do it every time I open a file.
So on my Fedora 15_64 system, I added that set line to

    /etc/vimrc

but it didn't work.

Any suggestions?
Thanks,
Mike.


What about adding it to $HOME/.vimrc instead? And if it still doesn't work, try

        :verbose setlocal fo?

in a problematic file, to see where it was set. If, for instance, it was set in /usr/share/vim/vim73/ftplugin/c.vim (i.e. $VIMRUNTIME/ftplugin/c.vim) then create a file named $HOME/.vim/after/ftplugin/c.vim (creating any needed directories in the process), with the one-line content:

        setlocal fo-=r fo-=o

(Note: unsetting both flags separately works even if they don't follow each other immediately in the order given).


Best regards,
Tony.
--
There's no easy quick way out, we're gonna have to live through our
whole lives, win, lose, or draw.
                -- Walt Kelly

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to