Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " ftplugin/d.vim
- setlocal formatoptions+=ro
- if filereadable("dub.sdl") || filereadable("dub.json")
- compiler dub
- elseif executable("dmd")
- compiler dmd
- endif
- if executable('xdg-open')
- command -buffer -nargs=1 Dpldocs
- \ execute 'silent !xdg-open "http://search.dpldocs.info/locate?q=<args>"' | redraw!
- setlocal keywordprg=:Dpldocs
- endif
- setlocal include=^\\(\\s*static\\)\\?\\s*import\\s\\+\\([[:lower:][:upper:][:digit:]_]\\+\\s*=\\s*\\)\\?\\zs[[:lower:][:upper:][:digit:]_.]\\+\\ze
- setlocal includeexpr=substitute(v:fname,'\\.','/','g')
- setlocal suffixesadd=.d,.di
- ----------
- " compiler/dmd.vim
- " Compiler plugin for the Digital Mars D compiler
- let current_compiler = "dmd"
- " For compatibility with old versions of Vim
- if exists(":CompilerSet") != 2
- command -nargs=* CompilerSet setlocal <args>
- endif
- " errorformat entries:
- " - Errors from -verrors=spec (ignored)
- " - Uncaught exceptions (e.g., from unit tests)
- " - Errors in string mixins
- " - Normal compile errors
- CompilerSet errorformat=
- \%-G\(spec:%*[0-9]\)\ %m,
- \%*[^@]@%f\(%l\):\ %m,
- \%f-mixin-%*[0-9]\(%l\\,%c\):\ %m,
- \%f-mixin-%*[0-9]\(%l\):\ %m,
- \%f\(%l\\,%c\):\ %m,
- \%f\(%l\):\ %m
- ----------
- " compiler/dub.vim
- " Compiler plugin for DUB
- runtime compiler/dmd.vim
- let current_compiler = "dub"
- " For compatibility with old versions of Vim
- if exists(":CompilerSet") != 2
- command -nargs=* CompilerSet setlocal <args>
- endif
- " Suppress non-error output to avoid spurious quickfix entries
- CompilerSet makeprg=dub\ --verror
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement