keywords.vim


Ⅰ. 插件描述

mappings to move and quote iskeyword text

Ⅱ. 基本信息

创建日期:  2005-05-27
使用用户:  1
Github星:  1
插件作者:  Anders Thøgersen

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This scripts provides two functionalities that use the iskeyword setting of
the current buffer.

The following mappings are provided for moving keywords in normal mode:

    <C-Up>   : exchange the current keyword with the previous one.
    <C-Down> : exchange the current keyword with the next one.

These mappings can be changed by changing the value of the following variables.

    let g:keywords_MoveWordL = '<C-Up>'
    let g:keywords_MoveWordR = '<C-Down>'

Also there exists mappings for adding/deleting "quotes" to/from a keyword or a
visually selected area. The mappings are as follows:

   qw, q"  : double quote
   qs, q'  : single quote
   qe, q`  : quote execute
   q[, q]  : quote with square brackets
   q{, q}  : quote with brackets
   q(, q)  : quote with parantheses
   q<, q>  : quote with xml style tag.

If you wish to provide a different map leader than 'q' use this variable:

   let g:keywords_MapLeader = 'q'

There is one normal mode mapping for removing quotes from a keyword:

   wq  :  removes non iskeyword material around the current keyword.

Consider sending an email if you have any comments or suggestions :-)

添加新评论