Skip to content

Instantly share code, notes, and snippets.

@h14i
Last active January 3, 2016 12: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 h14i/8465687 to your computer and use it in GitHub Desktop.
Save h14i/8465687 to your computer and use it in GitHub Desktop.
FileType d
" For gf, [I, i_CTRL-X_CTRL-I
" There is a need to modify path because it is suit my environment.
setlocal suffixesadd=.d,.di
let &l:include = '^\s*\%(\%(public\|static\)\s\+\)\?\<import'
" let &l:path = '.,' . g:V.system('denv prefix')[:-2] . '/src/*,' . &l:path . ',,'
setlocal path=.,/path/to/dmd/src/**,,
let &l:includeexpr = 'substitute(substitute(v:fname, "\\.", "/", "g"), "$", ".d", "")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment