Ctags path in vim is different from the shell -
Ctags path in vim is different from the shell -
i trying generate ctags vim. utilize exuberant ctags.
so problem when :!ctags
or :call system('ctags')
vim not work because uses default ctags , not exuberant ctags. had similar problem in shell overcame specifying path of exuberant first export path=/usr/bin/local/:$path
here weird part when echo $path
in vim shows right path. when :call system('which ctags')
shows me /usr/bin/ctags
, not /usr/bin/local/ctags
. can't understand going on??
though can overcome problem call system('/usr/bin/local/ctags')
wondering if there improve out there.
edit: utilize osx 10.9.3
:set shell?
-> shell=/bin/zsh
set shellcmdflag
-> shellcmdflag=-c
and set path in zshrc file export path="/usr/local/bin:usr/local:$path
when :!command
or :call system('command')
vim starts new subshell according values of 'shell'
, bunch of other options listed under :help 'shell'
. 'shellcmdflag'
alternative of import because tells shell how start (interactive or not, login or not) has impact on *rc
files sourced , if environment variables seen or not.
please, update question these informations:
your os:set shell?
:set shellcmdflag?
in *rc
file did alter path
? vim path ctags
Comments
Post a Comment