Permalink
Browse files

Corrected setting of local user

  • Loading branch information...
1 parent d84570b commit dff524e24b1f75f3d6809e83f4fb58dff7c828d9 @trcjr trcjr committed Mar 10, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 plugin/vimdir.vim
  2. +1 −1 vimrc
View
@@ -1,3 +1,3 @@
let $VIMHOME=expand('<sfile>:p:h:h')
-let $VIM_USER_RC = $VIMHOME . "/vimrc.". $USER
+let $VIM_USER_RC = $VIMHOME . "/vimrc.". luser
execute "silent! source " . $VIM_USER_RC
View
2 vimrc
@@ -1,5 +1,5 @@
" Use our user unless we have a sudo user, then is it
-let user = substitute(system('whoami'), '\n', '', '')
+let luser = substitute(system('whoami'), '\n', '', '')
if strlen($SUDO_USER)
let luser = $SUDO_USER
endif

0 comments on commit dff524e

Please sign in to comment.