scmCloseParens


Ⅰ. 插件描述

Lets you easily close all open parens up to the cursor line.

Ⅱ. 基本信息

创建日期:  2007-05-04
使用用户:  1
Github星:  1
插件作者:  Adrien (Axioplase::Pied)

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Lets you easily close all open parens up to the cursor line.

I tested it quickly with Scheme, but it should also work with Lisp.

(define foo
  (lambda(x)
    (+ x 1

Put your cursor on the last line (or below), and type <Leader>p
It will become

(define foo
  (lambda(x)
    (+ x 1)))

I chose "p" as in "parens", for it is easy to remember. I would have preferred "c" as in "close", but <leader>c is already taken by the good EnhancedCommentify :D

I apologize for this script beeing a dirty quick hack, but writing in vim's script language is a real pain, and this script is enough useful to me to choose to share it.
I should at least clean it by the following weeks.

添加新评论