From 992e094638352467909e5ebd2dc8c06763334ff2 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Mon, 13 Jul 2015 07:14:54 +0200 Subject: [PATCH] Add a warning about changing the buffer in autocommands. --- doc/UltiSnips.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index 0bd37b9..7d6831c 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -305,6 +305,10 @@ alternative function IMAP_Jumpfunc('', 0) is called. 3.2.2 Custom autocommands *UltiSnips-custom-autocommands* ------------------------- +Note Autocommands must *not* change the buffer in any way. If lines are added, +deleted, or modified it will confuse UltiSnips which might scramble your +snippets contents. + *UltiSnipsEnterFirstSnippet* *UltiSnipsExitLastSnippet* For maximum compatibility with other plug-ins, UltiSnips sets up some special state, include mappings and autocommands, when a snippet starts being @@ -329,6 +333,7 @@ is entered, and |UltiSnipsExitLastSnippet| will only fire once the last (outermost) snippet have been exited. + 3.2.3 Path to Python module *UltiSnips-python-module-path* ---------------------------