Ⅰ. 插件描述
Syntax highlighting for 8080 and Z80 assembly for the MACRO-80 assemblerⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'oraculo666/vim-m80'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'oraculo666/vim-m80'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'oraculo666/vim-m80'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/oraculo666/vim-m80
Ⅳ. 文档说明
# vim-m80
This is a simple [Vim] plugin to highlight 8080 and Z80 assembly code based on Microsoft's [MACRO-80] assembler and the [Z80] processor documentations. It still has no advanced preprocessor highlighting rules but is should already do the basics like opcodes and directives keyword highlighting as well as numbers, strings and comments.
Install
[Vundle]
- add the following to your vundle config:
Plugin 'oraculo666/vim-m80'- run
:PluginInstallin Vim command mode.
The plugin should automatically recognize '.mac' files.
Mappings
Insert Mode
<leader>i-- Inserts a full line comment separator below cursor.<leader>a-- Appends a full line comment separator below cursor and leaves cursor in insert mode below it.
Notes
- The
colorcolumnis set to 132 as a reminder since the real M-80 can't process lines longer than that. fileformatset todos. M-80 doesn't support unix line endings.fileencodingset tolatin1. Extended ASCII character encoding.- Tabs set at 8 spaces. Identifiers can be long but only the first 6 characters are significant.
Screenshot
