ocaml-opam / opam-user-setup

Simplify the configuration of editors for using OCaml tools
Other
81 stars 12 forks source link

use ~/.vim/vimrc if ~/.vimrc not available #33

Closed mychris closed 6 years ago

mychris commented 7 years ago

As of vim version 7.3.1178 , it is possible to store the ~/.vimrc file inside of the ~/.vim folder with the name vimrc. $ opam user-setup install writes everything to ~/.vimrc (and creates this file if not present) even if ~/.vim/vimrc is present and should be used instead.

After moving the contents of the ~/.vimrc to ~/.vim/vimrc, $ opam user-setup status shows everything as "absent":

$ opam user-setup status
# Available editors and configuration status:

## ocamltop (installed)
.ocamlinit                              base            current

## emacs (uninstalled)
.emacs.d/opam-user-setup.el             base            absent
                                        tuareg          absent
                                        ocp-indent      absent
.emacs                                  base            absent

## vim (installed)
.vimrc                                  base            absent
                                        ocp-indent      absent

## gedit (uninstalled)

## sublime3 (uninstalled)
$ opam user-setup --version
0.6