Created
June 19, 2011 02:30
-
-
Save bootleq/1033680 to your computer and use it in GitHub Desktop.
非 bootleq 登入時,也能讀取 /etc/users/bootleq/ 下的 runtime files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 非 bootleq 登入時,也能讀取 /etc/users/bootleq/ 下的 runtime files | |
if expand("<sfile>") == '/etc/users/bootleq/.vimrc' | |
\ && substitute(system("whoami"), '\n$', '', '') != 'bootleq' | |
\ && ! exists("did_bootleq_runtime") | |
set runtimepath+=/etc/users/bootleq/.vim | |
let did_bootleq_runtime = 1 | |
runtime! plugin/*.vim ftdetect/*.vim after/**/*.vim | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment