Skip to content

Instantly share code, notes, and snippets.

@retorillo
Last active May 11, 2017 15:50
Show Gist options
  • Save retorillo/5c5bf559898ed17473f732038272caff to your computer and use it in GitHub Desktop.
Save retorillo/5c5bf559898ed17473f732038272caff to your computer and use it in GitHub Desktop.
let list = split(globpath('./,lib,bin,test', '*'), '\v\r?\n')
for l in list
if !isdirectory(l) && filewritable(l)
exec printf('e %s', l)
exec 'set ff=unix'
exec 'set nobomb'
exec '%s/\s*$//'
endif
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment