Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Fixed sudo check.

  • Loading branch information...
commit 0e6d5d1c5028506daeb655473270359bd2878a21 1 parent 72ed94e
Shougo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugin/neocomplcache.vim
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.