matlab.vim


Ⅰ. 插件描述

vim script for matlab (a copy from somewhere)

Ⅱ. 基本信息

创建日期:  2017-03-09
使用用户:  3
Github星:  8
插件作者:  yinflying

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'yinflying/matlab-vim-with-ourselves'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'yinflying/matlab-vim-with-ourselves'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'yinflying/matlab-vim-with-ourselves'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/yinflying/matlab.vim

Ⅳ. 文档说明

# matlab.vim

Description

matlab.vim is a vim script which aims to easy to edit matlab.vim scripts,the
Features cotains as following:

1. keywords highlight (common words,not all)
2. Automatic alignment
3. Check syntax error
4. Tag support
5. jump matching groups

However, I am a just a porter, this script is made by someone in matlab forum.

It only for linuxer!

How to install it ?

if you you are using vundle , you could add following to vundle configure in
~/.vimrc:

Plugin "yinflying/matlab.vim"

and then update the vundle in vim :

:PluginInstall

of course, you could also download these file and then put then under ~/.vim/

And then you should add following in ~/.vimrc to support syntax checking:

autocmd BufEnter *.m    compiler mlint

of cousrse, you should have the "mlint" , which provide by matlab. You could
check by type "mlint" in terminal. If not recognized, you should fint the file
"mlint" under the matlab directory , and make a link under /usr/bin;

if you want use "%" to match if/end,classdef/end,methods/end,you should install
another plugin "matchit".

How to use it ?

You could automatic alignment with "=";

You could check the systax error by ":make" and ":copen", and ":cn"&":cp" jump
to error line;

添加新评论