coffee_tools.vim


Ⅰ. 插件描述

A work-in-progress plugin with tools for working with coffeescript

Ⅱ. 基本信息

创建日期:  2012-02-26
使用用户:  5
Github星:  7
插件作者:  Andrew Radev

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'andrewradev/coffee-tools-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'andrewradev/coffee-tools-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'andrewradev/coffee-tools-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This plugin will hold various tools I can think of for dealing with coffeescript. For now, there are a couple of these:

  • A "live preview" feature that's a bit different from the one in the official coffeescript runtime files.
  • A "delete and dedent" mapping that deletes the current line and fixes anything that's indented below it.
  • An "open line above and indent" mapping that indents the visually selected area and opens up a new line above.
  • A pair of "paste" mappings to paste some code, maintaining the level of indentation of the current line.
  • A function text object, providing mappings like "cif" and "vaf" to
    easily manipulate functions
  • Some minor syntax extensions

Since it's a work in progress, it's not published on vim.org and has no documentation for now. If you feel like using it, and you encounter any problems, please open an issue on github's bugtracker.

添加新评论