Skip to content

syngan/vim-operator-furround

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
input result note
( (tako)
[ [tako]
" "tako"
hoge hoge(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)
text type result note
hoge(tako) Df) tako
hoge[tako] Df] tako
tako(hoge[tako]) Df) hoge[tako]
{\bf foo} Da} foo ft=tex

vim-textobj-postexpr

Blog in Japanese