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