vim-textobj-entire icon indicating copy to clipboard operation
vim-textobj-entire copied to clipboard

Commenting an entire tex document

Open MahbubAlam231 opened this issue 8 years ago • 2 comments

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 avatar Mar 24 '18 09:03 MahbubAlam231

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',
\   }
\ })

kana avatar Mar 26 '18 10:03 kana

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.

MahbubAlam231 avatar Mar 30 '18 12:03 MahbubAlam231