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 to ae
, but ie
does not include leading and trailing empty
lines. ie
is handy for some situations. For example,
<C-w>n"*P
)
-- note that the initial empty line is left as the last line.:%s/foo/bar/g
etc)"*yie
)See also the reference manual for more details.