Permalink
Browse files

- Fixed sudo check.

  • Loading branch information...
1 parent 72ed94e commit 0e6d5d1c5028506daeb655473270359bd2878a21 @Shougo committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/neocomplcache.vim
View
@@ -32,7 +32,7 @@ elseif v:version < 702
echoerr 'neocomplcache does not work this version of Vim (' . v:version . ').'
finish
elseif $SUDO_USER != '' && $USER !=# $SUDO_USER
- \ && $HOME !=# expand('~'.$SUDO_USER)
+ \ && $HOME !=# expand('~'.$USER)
echoerr '"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.'
finish

0 comments on commit 0e6d5d1

Please sign in to comment.