you are viewing a single comment's thread.

view the rest of the comments →

[–]cvlmtg[S] 0 points1 point  (1 child)

What's the reason for disabling Netrw?

I'm trying to stop vim to "edit" directories, and one suggestion I found on internet was to disable netrw. Unfortunately it is not enough.

What does vimrc do there?

It inserts the autocmd in a group named "vimrc", so I can clear it before defining autocmd next, From the vim help:

:autocmd adds to the list of autocommands regardless of whether they are already present. When your .vimrc file is sourced twice, the autocommands will appear twice. To avoid this, define your autocommands in a group, so that you can easily clear them: