Re: :cd & 'cdpath'

2014-05-29 Fir de Conversatie Dhruva Sagar
I am aware of the fact that it's set from $CDPATH and it is doing that correctly. At least in ZSH (which I use), it does complete directory names from the $CDPATH. On Thursday, May 29, 2014 7:50:21 PM UTC+5:30, glts wrote: > On Thursday, May 29, 2014 11:52:29 AM UTC+2, Dhruva Sagar wrot

:cd & 'cdpath'

2014-05-29 Fir de Conversatie Dhruva Sagar
I recently discovered 'cdpath', and noticed VIM is doing a good job at it, except :cd doesn't autocomplete the valid paths from the 'cdpath'. I wrote this script as a hack to work around it : function! s:CdComplete(ArgLead, CmdLine, CursorPos) let pattern = empty(a:ArgLead) ? '*/' : '*' . a:Ar