From 94e43ada352e9d92ca63a853cf1d0845f6cb4865 Mon Sep 17 00:00:00 2001 From: IdanArye Date: Fri, 30 Aug 2013 03:50:48 +0300 Subject: [PATCH] Added the clearCache command --- editors/vim/README.md | 2 ++ editors/vim/ftplugin/d.vim | 1 + 2 files changed, 3 insertions(+) diff --git a/editors/vim/README.md b/editors/vim/README.md index 2788f24..344f645 100644 --- a/editors/vim/README.md +++ b/editors/vim/README.md @@ -34,5 +34,7 @@ Use the `DCD` command to send arbitary commands to the server via the client. The syntax is the same as with `dcd-client`, so you can use it without arguments to print the help message. +Use `DCDclearCache` to clear the DCD server cache. + When the server is running, use `CTRL`+`x` `CTRL`+`o` in a D buffer to use DCD completion. diff --git a/editors/vim/ftplugin/d.vim b/editors/vim/ftplugin/d.vim index d87b45e..ba5bc2e 100644 --- a/editors/vim/ftplugin/d.vim +++ b/editors/vim/ftplugin/d.vim @@ -10,3 +10,4 @@ endif command! -buffer -nargs=? DCD execute '!'.dcomplete#DCDclient().' '. command! -buffer DCDstopServer DCD --shutdown command! -buffer -nargs=+ -complete=dir DCDaddPath execute 'DCD '.dcomplete#globImportPath([]) +command! -buffer DCDclearCache DCD --clearCache