From 2efb9d8c74093f9691826164e1abe53be8262601 Mon Sep 17 00:00:00 2001 From: Brad Anderson Date: Thu, 12 Sep 2013 21:02:12 -0600 Subject: [PATCH] Add Vundle and improve Windows instructions --- editors/vim/README.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/editors/vim/README.md b/editors/vim/README.md index de5448b..9de4e95 100644 --- a/editors/vim/README.md +++ b/editors/vim/README.md @@ -1,11 +1,23 @@ A plugin for using DCD with vim. -Tested on Linux(and a bit on Windows) +Tested on Linux (and a bit on Windows) -Installation and Configuration -============================== +Installation +============ + +Vundle +------ +1. Add `Bundle "Hackerpilot/DCD", {'rtp': 'editors/vim'}` to your vimrc. +2. `:BundleInstall` + +Manual +------ Put the autoload and ftplugin folders in your vim runtime path. + +Configuration +============= + Compile DCD and put both dcd-client and dcd-server in your path, or set the global variable `g:dcd\_path` to where you put DCD. @@ -17,7 +29,12 @@ DCD does not add them for you. On Linux it should be: let g:dcd_importPath=['/usr/include/d','/usr/include/d/druntime/import'] ``` -On windows you need to look for the path in dmd's installation. +On Windows you need to locate the root of your dmd installation (typically +`C:\D`). Phobos and DRuntime can be found within under `dmd2\src\phobos` and +`dmd2\src\druntime\import`, respectively. Example: +```vim +let g:dcd_importPath=['C:\D\dmd2\src\phobos','C:\D\dmd2\src\druntime\import'] +``` Import paths are globbed with Vim's globbing function.