Editor Support /
Vim Editor
Difference (last change) (no other diffs, normal page display)
Changed: 3c3
As of version 6.3, D syntax highlighting is included in the main distribution. There may also be newer versions for the D syntax file. |
As of version 6.3, D syntax highlighting is included in the main distribution. There may be newer versions on the vim.org scripts page or on the development site. |
Changed: 39c39
d.vim has been moved to GitHub where there is a bug tracking system and a more open development process. Releases will still be placed on the vim scripts page, but now contributions can be much more easily be managed in the open for all to partake. |
Development of d.vim now occurs on GitHub's d.vim site where there is a bug tracking system and a more open development process. Releases will still be placed on the vim scripts page, but now contributions can be much more easily managed in the open for all to partake. |
Webpage
As of version 6.3, D syntax highlighting is included in the main distribution. There may be newer versions on the vim.org scripts page or on the development site.
Make and error formats
for DMD: set errorformat+=%f(%l):\ %m
You can also set up a "make" program like this: set makeprg="rebuild\ %\ -c\"
Using ctags and the taglist plugin
You can download the ctag binary patched with D support from this wiki page: ReferenceForTools/ExuberantCtags
Make sure your ctag binary is in your path, or otherwise callable from a shell/command prompt.
The Taglist plugin can be downloaded from: http://vim.sourceforge.net/scripts/script.php?script_id=273
You will need to add a variable to your vimrc file, and provide some formatting options. Furthermore, you will need to activate filetype detection. Here's what your vimrc might look like:
- filetype on
- filetype plugin on
- autocmd BufNewFile,BufRead *.di setfiletype d
- let tlist_d_settings='d;c:classes;d:macro definitions;e:enumerators'
- nnoremap <silent> <F2> :TlistToggle<CR>
You should now be able to call :TlistOpen with some D files opened in Vim.
Using Cscope
Bugs
Development of d.vim now occurs on GitHub's d.vim site where there is a bug tracking system and a more open development process. Releases will still be placed on the vim scripts page, but now contributions can be much more easily managed in the open for all to partake.