Ⅰ. 插件描述
A better AUTOSAR ARXML folding and ShortName followerⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'm42e/arxml-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'm42e/arxml-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'm42e/arxml-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/m42e/arxml.vim
Ⅳ. 文档说明
arxml.vim
Provides a more usefull folding for AUTOSAR XML files (arxml).
It shows the shortname of the collapsed element in the foldtext, and shows the subpackages of ar-packages elements.
And it allows to jump to the the linked reference using: call FollowShortName()
Dependencies
- vim must be compiled with python support
- lxml must be instlled for python
TODO
It would be most usefull if somehow a linking of the shortnames to the specific elements can be performed using xpath.. maybe the xpath plugin is helpfull hereAdd optional shortcut to jump to shortname location (this only works in the current file, and is not planned to be extended in near future)- more special handlings of some elements
documentation