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.
Issue: If g:ctrlp_user_command have been customized, reloading .vimrc
with :so $MYVIMRC produces "E706: Variable type mismatch for:
g:ctrlp_user_command"
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.