Hacker News new | ask | show | jobs
by johncoltrane 93 days ago
Assuming you already had a ~/.vimrc, the only non-defaults in that list are:

    :let no_man_maps=1
    :let loaded_matchparen = 1
    :set comments=""
    :set matchpairs=""
    :set paste
All the other lines set options to their default value, which is pointless.

The values for 'comments' and 'matchpairs' are incorrect, they should be:

    :set comments=
    :set matchpairs=
Enabling 'paste' by default is a very bad idea, with lots of side-effects.

Setting the following variable is useless if you don't enable the 'man' plugin, but maybe you do it manually during a session. I don't know. YMMV.

    :let no_man_maps=1
2 comments

>All the other lines set options to their default value, which is pointless.

I kinda like doing this for some programs, both as a way to see the current settings at a glance, and to avoid issues if defaults change in an update. At least twice mpv has changed default behavior and ruined my day. Once when they made scrolling vertically change volume instead of seeking (trying to match VLC?), and once when they disabled subtitles if the language matched the audio. Both easy to fix in the config file, both cases where I liked the default until they changed it.

Thanks,I will have to revisit the settings. These are from the move to vim 7.0. 7.0 without these settings was a nightmare and if one was missing it would not work the way I wanted it to.