From 6bb9feb207d9ae4e5a4ace8907ff33c77b7b0883 Mon Sep 17 00:00:00 2001 From: patricknraanes Date: Thu, 31 Mar 2022 16:18:27 +0200 Subject: [PATCH] Document how to add closing brace for imap --- doc/vimtex.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/vimtex.txt b/doc/vimtex.txt index 125999ae9f..b738527a3a 100644 --- a/doc/vimtex.txt +++ b/doc/vimtex.txt @@ -3264,7 +3264,10 @@ MAP DEFINITIONS *vimtex-mappings* Insert mode: Convert the preceding text into a LaTeX command. That is, it prepends a backslash and adds an opening brace. It also moves the cursor to the end - of the word. + of the word. If you also want the closing brace (emulating delimitMate), + you can add the following to your `~/.vim/after/ftplugin/tex.vim` + + imap (vimtex-cmd-create)} Normal/Visual mode: Surrounds the word under the cursor/visual selection by the command