Safer VIM for git
This will make you can not modify any file in git master branch.
-
Clone the file to your any path, in this readme, I will put this file in my home/bin.
-
and change the new_vim mode
$chmod 755 new_viw
- set $PATH in your .bash_profile or .zshrc(if you use zsh)
$export PATH=$PATH:/Users/develop/bin
- set alise
$alias vi='new_vi'