vim-operator-furround


Ⅰ. 插件描述

an extension of surround.vim

Ⅱ. 基本信息

创建日期:  2014-02-26
使用用户:  1
Github星:  4
插件作者:  syngan

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-operator-furround

Build Status

This plugin is a Vim operator to surround a text by register content.

Required:

Recommended:

Related:

Mappings:

  • <Plug>(operator-furround-append-input) (use input always)
  • <Plug>(operator-furround-append-reg) (depend on use_input option)
  • <Plug>(operator-furround-delete)
  • <Plug>(operator-furround-replace-input)
  • <Plug>(operator-furround-replace-reg)

Install

NeoBundle

NeoBundleLazy 'syngan/vim-operator-furround', {
\   'depends' : [ 'kana/vim-operator-user'],
\   'autoload' : {
\    'mappings' : ['<Plug>(operator-furround-']}
\}

<Plug>(opeartor-furround-append-input)

  • map sa <Plug>(opeartor-furround-append-input)
  • original text is tako
  • type saiw and input xxx

    • note: iw is an inner word. see :h iw
inputresultnote
((tako)
[[tako]
""tako"
hogehoge(tako)default
hoge(hoge(tako)
hoge<hoge<tako>
hoge["hoge["tako"]
hoge()["hoge()["tako"]
hoge(3, hoge(3, tako)
hoge(3, "hoge(3, "tako")
{\bf {\bf tako}LaTeX
\begin{ho}\begin{ho}tako\end{ho}filetype=tex
  • default block: [], (), {}, <>, "", ''

<Plug>(opeartor-furround-delete)

  • map D <Plug>(opeartor-furround-delete)
texttyperesultnote
hoge(tako)Df)tako
hoge[tako]Df]tako
tako(hoge[tako])Df)hoge[tako]
{\bf foo}Da}fooft=tex

vim-textobj-postexpr

Blog in Japanese

添加新评论