According to ":help autochdir", the 'autochdir' variable should
be available only if |+netbeans_intg| or |+sun_workshop| feature
is available:
'autochdir' 'acd' boolean (default off)
global
{not in Vi}
{only available when compiled with the
|+netbeans_intg| or |+sun_workshop| feature}
On my version of Vim-7.2.416 (huge), neither +netbeans_intg,
nor +sun_workshop feature is available:
:echo has('netbeans_intg')
0
:echo has('sun_workshop')
0
Yet ":set autochdir" works fine, in contradiction with
information in ":help 'autochdir'":
I stumbled upon this since my ~/.vimrc contains...
if has('netbeans_intg') || has('sun_workshop')
set autochdir
endif
... which did not set 'autochdir' even though ":set autochdir"
works fine in big or huge versions of Vim.
This is how FEAT_AUTOCHDIR is defined in vim/src/feature.h:
1273 /*
1274 * +autochdir 'autochdir' option.
1275 */
1276 #if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG) \
1277 || defined(FEAT_BIG)
1278 # define FEAT_AUTOCHDIR
1279
No comments:
Post a Comment