@@ -142,6 +142,11 @@ match for `\nequiv` (`≢`). By default, if <Tab> finds an exact match it perfor
142
142
the substitution, but this can be controlled by the | g:latex_to_unicode_eager |
143
143
setting.
144
144
145
+ An additional option allows to configure the plugin to work in a more
146
+ "natural" way, similarly to other completion plug-ins, so that when a menu is
147
+ present it can be navigated with <Tab> and <S-Tab> , and entries can be
148
+ selected with <Enter> . See | g:latex_to_unicode_smart_tab | .
149
+
145
150
Command-line mode *julia-vim-L2U-cmdmode*
146
151
147
152
In | Command-line | mode, the behavior is largely the same except that both
@@ -285,6 +290,32 @@ g:latex_to_unicode_tab
285
290
while editing, but you need to invoke | LaTeXtoUnicode#Init() |
286
291
for the change to take effect.
287
292
293
+ *g:latex_to_unicode_smart_tab*
294
+ g:latex_to_unicode_smart_tab
295
+
296
+ In "smart tab" mode, the <Tab> key can be used to scroll
297
+ through the list of suggestions when the menu produced by the
298
+ LaTex-to-Unicode plugin is present (otherwise this would be done
299
+ with <C-N> , see | i_CTRL-N | ). This mode also remaps <S-Tab> to
300
+ scroll back (otherwise this would be done with <C-P> , see
301
+ | i_CTRL-P | ) and it also remaps <Enter> to accept a suggestion
302
+ and perform the substitution (otherwise this would be done
303
+ with <Tab> ).
304
+ In all cases, the remapped keys fall back to their original
305
+ behavior if no menu is present, or if it was not generated by
306
+ LaTeX-to-Unicode (this behavior may be the Vim default, or the
307
+ one from another existing mapping).
308
+
309
+ This only has an affect when `g: latex_to_unicode_tab ` is
310
+ activated for insert mode. By default it is `0 ` (off).
311
+ You can enable the feature by default by inserting the line
312
+ >
313
+ let g:latex_to_unicode_auto = 1
314
+ <
315
+ in your | .vimrc | file. You can change this setting at any
316
+ moment while editing, but you need to invoke
317
+ | LaTeXtoUnicode#Init() | for the change to take effect.
318
+
288
319
*g:latex_to_unicode_suggestions*
289
320
g:latex_to_unicode_suggestions
290
321
0 commit comments