Git Product home page Git Product logo

vim-textobj-entire's Introduction

vim-textobj-entire - Text objects for entire buffers

Build Status

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 (<C-w>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 for more details.

vim-textobj-entire's People

Contributors

kana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-textobj-entire's Issues

err

➜ bundle vim
处理 /Users/yangmaochu/.vim/bundle/vim-textobj-entire/plugin/textobj/entire.vim 时发生错误:
第 34 行:
E117: Unknown function: textobj#user#plugin
请按 ENTER 或其它命令继续
[1] + 817 suspended vim

Commenting an entire tex document

I am not being able to visually select an entire tex file using vae, it only selects inside \begin{document} \end{document} when the cursor is inside that part. Is it always the case.

Don't add `gg` to jumplist

Currently when this textobject is used, gg is added to the jumplist (<C-o>). This is not the expected behavior for textobjects.

Mark ' not set with cursor's column

In https://github.com/kana/vim-textobj-entire/blob/master/plugin/textobj/entire.vim on line 57:

mark  '

This sets the mark using column 0 instead of the cursor's column (see :help :mark). So after yae, a <C-o> or `` returns you to the correct line, but incorrect column. I would recommend replacing line 57 with the following, which sets the mark using the cursor's column:

normal m'

(There might be a different way to do this as well without using normal but I haven't found it).

Add requirements to README

Would be nice to have the below requirement in readme to make it obvious rather than having to run into error and googling around.

  • |textobj-user| 0.3.7 or later (vimscript#2100)

E117: Unknown function: textobj#user#plugin

Hello Guys,

Have you ever run into this issue? Please see the details below,

Error detected while processing C:\Vim\vimfiles\bundle\vim-textobj-
entire\plugin\textobj\entire.vim:
line 44:
E117: Unknown function: textobj#user#plugin
vim-plugin-error 2016-08-31_122607
vim-plugin-error 2016-08-31_122637

I already installed this plugin via Vundle(Both in Windows7 and Ubuntu 14.04LTS), like this:
Put the following line into my vimrc file
Plugin 'https://github.com/kana/vim-textobj-entire'

vim-plugin-error 2016-08-31_122721

However, when I reopen my gvim via "Start->Run" in Windows7 or ,via terminal in linux, it always poped out the issue above

Here is the version of my vim both in Windows7 and Linux/Ubuntu:

# root @ metalmac-PC in ~ [12:26:32]
$ vim --ver
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 19 2014 14:43:42)
C:\Users\metalmac>vim --ver
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:33:40)

Thanks for any helpful advice! :)

Unknown function

I installed vim-textobj-entire using git clone on a Windows 7 machine. On start up vim prompt:

Line 44:

E117: Unknown function: textobj#user#plugin

Could anybody tell me what is wrong please.

By the way, I find this plugin when I was reading "Practcal vim" by Drew Neil.

Remapping keys

Hi. I love your text object enhancements, but I'm a little confused about how to remap the keys. I don't mind the defaults, but I think it's more memorable to use ab and ib (b for buffer instead of e for entire). However, I can't figure out what the doc is saying when it talks about :TextobjEntireDefaultKeyMappings, and simply:

map ib (textobj-entire-i)

doesn't work.

Thanks.


_Edit_ After reading your response of RTFM here: kana/vim-textobj-indent#4 I'd rather not bother.

E117: Unknown function: textobj#user#plugin

After install with pathogen I get following error message:

Error detected while processing /Users/paul/.vim/bundle/vim-textobj-entire/plugin/textobj/entire.vim:
line 44:
E117: Unknown function: textobj#user#plugin
Press ENTER or type command to continue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.