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 onuse_input
option)<Plug>(operator-furround-delete)
<Plug>(operator-furround-replace-input)
<Plug>(operator-furround-replace-reg)
NeoBundleLazy 'syngan/vim-operator-furround', {
\ 'depends' : [ 'kana/vim-operator-user'],
\ 'autoload' : {
\ 'mappings' : ['<Plug>(operator-furround-']}
\}
map sa <Plug>(opeartor-furround-append-input)
- original text is
tako
- type
saiw
and input xxx- note:
iw
is aninner word
. see:h iw
- note:
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:
[]
,()
,{}
,<>
,""
,''
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 |
-
syngan/vim-textobj-postexpr
-
omap iv <Plug>(textobj-postexpr-i)
-
text is
hoge(tako(foo))
and doDiv
thentako(foo)