Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commenting an entire tex document #10

Open
MahbubAlam231 opened this issue Mar 24, 2018 · 2 comments
Open

Commenting an entire tex document #10

MahbubAlam231 opened this issue Mar 24, 2018 · 2 comments

Comments

@MahbubAlam231
Copy link

MahbubAlam231 commented Mar 24, 2018

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.

@MahbubAlam231 MahbubAlam231 reopened this Mar 24, 2018
@MahbubAlam231 MahbubAlam231 changed the title Commenting an entire document Commenting an entire tex document Mar 24, 2018
@kana
Copy link
Owner

kana commented Mar 26, 2018

It seems that you have installed another text object plugin which overrides key mappings (ae/ie) defined by vim-textobj-entire.

For example, vim-textobj-latex also defines ae/ie: https://github.com/rbonvall/vim-textobj-latex/blob/2db7b594bb9e749d7516517781bd72d74325d3d9/ftplugin/tex/textobj-latex.vim#L10-L15

So that there are two options:

  1. Use other key mappings for vim-textobj-entire. For example, write the following in your vimrc:
call textobj#user#map('entire', {
\   '-': {
\     'select-a': 'aE',
\     'select-i': 'iE',
\   }
\ })
  1. Use the default key mappings for vim-textobj-entire. For example, write the following in your vimrc:
call textobj#user#map('entire', {
\   '-': {
\     'select-a': 'ae',
\     'select-i': 'ie',
\   }
\ })

@MahbubAlam231
Copy link
Author

MahbubAlam231 commented Mar 30, 2018

I'm not using vim-textobj-latex, I'm using LaTeX-Box. Maybe that has something in it. I used the second one of your solution, it didn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants