Skip to content

Instantly share code, notes, and snippets.

@slimane
Last active December 27, 2015 01:49
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 slimane/7247697 to your computer and use it in GitHub Desktop.
Save slimane/7247697 to your computer and use it in GitHub Desktop.
is_loaded
let s:is_loaded_flg = 's:' . substitute(expand('<sfile>:p'), '\W', '_', 'g')
if exists(s:is_loaded_flg)
finish
else
execute 'let ' . s:is_loaded_flg . ' = 1'
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment