diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-29 08:27:28 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-10-29 08:30:39 +0100 |
commit | 9ef01272b23cffe98b5b19e34d05f1ac44cbeab1 (patch) | |
tree | c9171e574a01fb8f9c0245a2c2fbc20f4ef4bc4d /runtime/indent | |
parent | a1e822fbc63984a2744dd723e286f9eafd9039f1 (diff) | |
download | rneovim-9ef01272b23cffe98b5b19e34d05f1ac44cbeab1.tar.gz rneovim-9ef01272b23cffe98b5b19e34d05f1ac44cbeab1.tar.bz2 rneovim-9ef01272b23cffe98b5b19e34d05f1ac44cbeab1.zip |
vim-patch:7dda86f2ff35
Update runtime files.
https://github.com/vim/vim/commit/7dda86f2ff35bb80afce4da24782fd58216bbe50
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/tex.vim | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/runtime/indent/tex.vim b/runtime/indent/tex.vim index 1a4d8b1cb6..a748cfbb40 100644 --- a/runtime/indent/tex.vim +++ b/runtime/indent/tex.vim @@ -2,7 +2,7 @@ " Language: LaTeX " Maintainer: Yichao Zhou <broken.zhou AT gmail.com> " Created: Sat, 16 Feb 2002 16:50:19 +0100 -" Version: 0.9.4 +" Version: 1.0.0 " Please email me if you found something I can do. Comments, bug report and " feature request are welcome. @@ -62,6 +62,8 @@ " (*) Fix a bug between g:tex_noindent_env and g:tex_indent_items " Now g:tex_noindent_env='document\|verbatim\|itemize' (Emacs " style) is supported. Thanks Miles Wheeler for reporting. +" 2018/02/07 by Yichao Zhou <broken.zhou AT gmail.com> +" (*) Make indentation more smart in the normal mode " " }}} @@ -91,19 +93,14 @@ " If this variable is set, item-environments are indented like Emacs does " it, i.e., continuation lines are indented with a shiftwidth. " -" NOTE: I've already set the variable below; delete the corresponding line -" if you don't like this behaviour. -" -" Per default, it is unset. -" -" set unset -" ---------------------------------------------------------------- -" \begin{itemize} \begin{itemize} -" \item blablabla \item blablabla -" bla bla bla bla bla bla -" \item blablabla \item blablabla -" bla bla bla bla bla bla -" \end{itemize} \end{itemize} +" set unset +" ------------------------------------------------------ +" \begin{itemize} \begin{itemize} +" \item blablabla \item blablabla +" bla bla bla bla bla bla +" \item blablabla \item blablabla +" bla bla bla bla bla bla +" \end{itemize} \end{itemize} " " " * g:tex_items @@ -290,8 +287,9 @@ function! GetTeXIndent() " {{{ endif endif - if stay - " If there is no obvious indentation hint, we trust our user. + if stay && mode() == 'i' + " If there is no obvious indentation hint, and indentation is triggered + " in insert mode, we trust our user. if empty(cline) return ind else |