vim-m80


Ⅰ. 插件描述

Syntax highlighting for 8080 and Z80 assembly for the MACRO-80 assembler

Ⅱ. 基本信息

创建日期:  2016-12-21
使用用户:  2
Github星:  2
插件作者:  Gustavo Seidler

Ⅲ. 安装方法

使用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 :PluginInstall in 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 colorcolumn is set to 132 as a reminder since the real M-80 can't process lines longer than that.
  • fileformat set to dos. M-80 doesn't support unix line endings.
  • fileencoding set to latin1. Extended ASCII character encoding.
  • Tabs set at 8 spaces. Identifiers can be long but only the first 6 characters are significant.

Screenshot

vim-m80

添加新评论