51
GitHub - kana/vim-textobj-entire: Vim plugin: Text objects for entire buffer
source link: https://github.com/kana/vim-textobj-entire
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
vim-textobj-entire - Text objects for entire buffers
vim-textobj-entire is a Vim plugin to provide text objects (ae
and ie
by
default) to select the entire content of a buffer. Though these are trivial
operations (e.g. ggVG
), text object versions are more handy, because you do
not have to be conscious of the cursor position (e.g. vae
).
vim-textobj-entire provides two text objects:
ae
targets the entire content of the current buffer.ie
is similar toae
, butie
does not include leading and trailing empty lines.ie
is handy for some situations. For example,- Paste some text into a new buffer (
<C-w>n"*P
) -- note that the initial empty line is left as the last line. - Edit the text (
:%s/foo/bar/g
etc) - Then copy the resulting text to another application (
"*yie
)
- Paste some text into a new buffer (
See also the reference manual for more details.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK