Install ninja's syntax file from vim's Vundle

Asked 2 years ago, Updated 2 years ago, 60 views

I would like to install the ninja-build syntax file using vim's Vundle, what should I do?

In Vundle, the github repository itself is a plug-in, and the plug-in on vim.org is easy to install.

But how do I install a single file plug-in like ninja's syntax file?

The syntax file for ninja can be found at the link below.
https://github.com/ninja-build/ninja/blob/master/misc/ninja.vim

You can add it to rtp without using Vundle, but I would like to manage it as much as possible with Vundle

vim

2022-09-30 16:12

1 Answers

After installing ninja-build repository in Vundle, how about creating a symbolic link file to ninja.vim in the $HOME/.vim/syntax/ directory?

$HOME/.vimrc

Bundle 'ninja-build/ninja'
silent execute'![-f~/.vim/syntax/ninja.vim]||ln-sf~/.vim/bundle/ninja/misc/ninja.vim~/.vim/syntax/'


2022-09-30 16:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.