Quotes


Ⅰ. 插件描述

Minimal but smart quote handling for programming

Ⅱ. 基本信息

创建日期:  2010-08-18
使用用户:  2
Github星:  1
插件作者:  Niels Aan de Brugh

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Useful handling of quote-symbols for programming, without becoming too complicated or restrictive.

This script is designed so the sequence of keystrokes you would normally type (without any scripted assistance) yields the same result as with this script enabled. But that doesn\'t mean you have to.

  • Typing \" introduces a new string and puts the cursor inside unless one of the following cases applies.
  • Typing \" just before the end of a string jumps out of the string (so you can continue typing).
  • Typing \" inside a string introduces a pair of escaped quote-symbols and puts the cursor in between.
  • Typing \" inside a string right after an escape character (i.e. an odd number of back-slashes) just inserts a \".
  • Typing \" just before \\\" inside a string jumps over the \\\", so (again) you can continue typing.

It\'s pretty minimal, but useful I hope.

This is a 0.1 version, it has not yet been heavily used.

添加新评论