HP-41 file type plugin


Ⅰ. 插件描述

Makes it easier to write HP-41 calculator programs in VIM

Ⅱ. 基本信息

创建日期:  2005-09-20
使用用户:  1
Github星:  1
插件作者:  Geir Isene

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/hp-41-file-type-plugin'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/hp-41-file-type-plugin'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/hp-41-file-type-plugin'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/HP-41-file-type-plugin

Ⅳ. 文档说明

This ftplugin has the following features:

Auto-line-numbering: Upon pressing <CR> after a line, the next line has the correct line number. It even renumbers the whole file automatically. So, if you add new lines in the middle of a program, it renumbers the whole file. If you delete a line, just hit Enter to renumber the file (either in Normal or Insert mode)

Also, abbreviations of usual commands:
iab av AVIEW
iab ar ARCL
iab as ASTO
iab en ENTER
iab gt GTO
iab ge GETREC
iab lb LBL
iab pr PROMPT
iab sa SAVEREC
iab st STO
iab rc RCL
iab vi VIEW
iab xe XEQ
iab <> X<>Y
iab . STOP

There is a matching syntax file here:
http://vim.sourceforge.net/scripts/script.php?script_id=1360

添加新评论