A simple change to support neovim. Fixes#774.
Move nvimrc file inside .nvim directory
Only install neovim support if neovim is being used
Use program_exists function instead of vimscript
Made a hasty mistake and added vimscript to a bash script :X
Neovim not existing no longer stops script
Also correct `endif` to `fi`.
Refactor program_exists naming
Changed `program_exists` to `program_must_exist`, which throws an error which halts the script if the program is not found, and refactored `nvim_exists` to be the more general `program_exists`, which does not throw an error if the program is not found.
Refactor program_exists and program_must_exist
`program_must_exist` uses `program_exists` now, instead of repeating code. Changed `type` to `command -v` in `program_exists` to be more POSIX compliant. Refactored status code conditional in `program_exists` to remove double negatives. Thanks to @mkwmms for the suggestions.
Preliminary support for neovim
A simple change to support neovim. Fixes#774.
Move nvimrc file inside .nvim directory
Refactor program_exists naming
Changed `program_exists` to `program_must_exist`, which throws an error which halts the script if the program is not found, and refactored `nvim_exists` to be the more general `program_exists`, which does not throw an error if the program is not found.
Refactor program_exists and program_must_exist
`program_must_exist` uses `program_exists` now, instead of repeating code. Changed `type` to `command -v` in `program_exists` to be more POSIX compliant. Refactored status code conditional in `program_exists` to remove double negatives. Thanks to @mkwmms for the suggestions.
upgrade_repo, sync_repo (previously clone_repo), and
clone_vundle have been merged together into a much simpler function.
sync_repo now relies only upon passed arguments, nothing explicit
from the global scope.
When working with puppet (and other setups), it is possible the HOME environmental variable is unset. This
leads to a spf13 bootstrap which does not perform as expected because `$HOME` is empty. This results in files being written to undesirable locations such as `/.spf13-vim-3/.vimrc.bundles` Let's stop the user before they get into this bad state.
* .vimrc.before should not be modified (just like any other non-local
or non-fork config file)
* .vimrc.before contains a list of all options that can be set
* .vimrc.before.local is where these options would actually be set
* support .vimrc.before and .vimrc.before.fork in install scripts
I've gone through the entire repository, checking all http:// links to
see if the corresponding https urls would also work. This is especially
important when asking the user to run a script they fetched via curl,
because in the case of a mitm they will have no way at all to detect
that something malicious is going on.