UCI syntax highlighting in OpenWRT
Tuesday, January 12, 2016 » OpenWRT Vim
1 2 3 4 5 | opkg install vim-full vim-runtime openssl-util
mkdir -p /usr/share/vim/vim74/{syntax,ftplugin,ftdetect}
wget -O /usr/share/vim/vim74/syntax/uci.vim https://raw.githubusercontent.com/cmcaine/vim-uci/master/syntax/uci.vim
wget -O /usr/share/vim/vim74/ftplugin/uci.vim https://raw.githubusercontent.com/cmcaine/vim-uci/master/ftplugin/uci.vim
wget -O /usr/share/vim/vim74/ftdetect/uci.vim https://raw.githubusercontent.com/cmcaine/vim-uci/master/ftdetect/uci.vim
|
To /etc/profile:
1 | export VIMRUNTIME=/usr/share/vim/vim74
|
and maybe
1 | alias vi='vim'
|