setup ternjs of vim

This commit is contained in:
Jie Feng 2017-08-21 15:04:02 +08:00
parent fffb82a81e
commit c8ecb466b4

View File

@ -155,6 +155,17 @@ task :install_vundle do
end
Vundle::update_vundle
Rake::Task["vim_tern_setup"].execute
end
task :vim_tern_setup do
run %{
npm -v &> /dev/null;
if [[ $? == "0" ]]; then
cd $HOME/.yadr/vim/bundle/tern_for_vim
npm install
fi
}
end
task :default => 'install'