and with YouCompleteMe active, typing something like the following will produce unusual indent behavior.
Here '|' represents the cursor position.
\begin{enumerate}
\item \begin{align*}
a &= b
\end |
\end{enumerate}
At this point, if I backspace three times, I get
\begin{enumerate}
\item \begin{align*}
a &= b
| \e
\end{enumerate}
In addition, if I then type any character and then backspace, the backspace operation actually skips over the typed character and inserts an indent. Here I type 'a b c ', and get
\begin{enumerate}
\item \begin{align*}
a &= b
| c b a \e
\end{enumerate}
I believe this problem to be on LaTeX-Box's side rather than YCM's, since using Vim's default LaTeX indentation file doesn't cause this problem. However, this problem does happen only when YouCompleteMe is active, so my guess is that the LB's custom indent and YCM's autocompletion conflict somehow. Perhaps the "autocmd CompleteDone" call in indent/tex.vim has something to do with it?
YCM and LaTeX-Box related settings in my .vimrc are
let g:LatexBox_latexmk_async=1
let g:LatexBox_latexmk_preview_continuously=1
let g:LatexBox_viewer="open -a /Applications/TeXShop.app"
let g:LatexBox_quickfix=4
let g:LatexBox_autojump=0
let g:LatexBox_show_warnings=0
let g:LatexBox_custom_indent=0
let g:ycm_global_ycm_extra_conf = "/Users/spencer/.ycm_extra_conf.py"
let g:ycm_confirm_extra_conf = 0 " Use alternate confs without confirmation
let g:ycm_autoclose_preview_window_after_completion = 1
let g:ycm_key_invoke_completion = '<C-Space>'
let g:ycm_key_list_select_completion = ['<Tab>']
let g:ycm_key_list_previous_completion = ['<S-Tab>']
let g:ycm_semantic_triggers = {
\ 'tex' : ['{'],
\ }
With LaTeX-Box's custom indentation on
and with YouCompleteMe active, typing something like the following will produce unusual indent behavior.
Here '|' represents the cursor position.
At this point, if I backspace three times, I get
In addition, if I then type any character and then backspace, the backspace operation actually skips over the typed character and inserts an indent. Here I type 'a b c ', and get
I believe this problem to be on LaTeX-Box's side rather than YCM's, since using Vim's default LaTeX indentation file doesn't cause this problem. However, this problem does happen only when YouCompleteMe is active, so my guess is that the LB's custom indent and YCM's autocompletion conflict somehow. Perhaps the "autocmd CompleteDone" call in indent/tex.vim has something to do with it?
YCM and LaTeX-Box related settings in my .vimrc are
My vim version information is as follows.