Skip to content

Instantly share code, notes, and snippets.

@bootleq
Created June 19, 2011 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bootleq/1033680 to your computer and use it in GitHub Desktop.
Save bootleq/1033680 to your computer and use it in GitHub Desktop.
非 bootleq 登入時,也能讀取 /etc/users/bootleq/ 下的 runtime files
" 非 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