Skip to content

Instantly share code, notes, and snippets.

@kenji0x02
Created May 18, 2013 17:30
Show Gist options
  • Save kenji0x02/5605206 to your computer and use it in GitHub Desktop.
Save kenji0x02/5605206 to your computer and use it in GitHub Desktop.
sudo vimでエラー "sudo vim" and $HOME is not same to /root are detected.Please use sudo.vim plugin instead of sudo command or set always_set_home in sudoers.
$ sudo vim
Error detected while processing /Users/user_name/.vim/bundle/neocomplcache/plugin/neocomplcache.vim:
line 37:
"sudo vim" and $HOME is not same to /root are detected.Please use sudo.vim plugin instead of sudo command or set always_set_home in sudoers.
then, set "always_set_home" in visudo as follows:
$ sudo visudo
+ Defaults always_set_home
@kenji0x02
Copy link
Author

だいたいデフォルトで設定されてるけど、たまに設定されていないときがー

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment