Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kana/vim-textobj-entire
Vim plugin: Text objects for entire buffer
https://github.com/kana/vim-textobj-entire
vim vim-plugins vim-textobj-user
Last synced: about 2 months ago
JSON representation
Vim plugin: Text objects for entire buffer
- Host: GitHub
- URL: https://github.com/kana/vim-textobj-entire
- Owner: kana
- Created: 2010-03-28T03:56:53.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T12:11:28.000Z (about 2 years ago)
- Last Synced: 2024-06-18T14:35:26.973Z (3 months ago)
- Topics: vim, vim-plugins, vim-textobj-user
- Language: Vim script
- Homepage: http://www.vim.org/scripts/script.php?script_id=2610
- Size: 21.5 KB
- Stars: 421
- Watchers: 7
- Forks: 26
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-textobj-entire - Text objects for entire buffers
[![Build Status](https://travis-ci.org/kana/vim-textobj-entire.png)](https://travis-ci.org/kana/vim-textobj-entire)
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,
1. Paste some text into a new buffer (`n"*P`)
-- note that the initial empty line is left as the last line.
2. Edit the text (`:%s/foo/bar/g` etc)
3. Then copy the resulting text to another application (`"*yie`)See also [the reference manual](https://github.com/kana/vim-textobj-entire/blob/master/doc/textobj-entire.txt) for more details.