From f8a07ae8e315279baca5a871b6ec28f1a42debeb Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Mon, 10 Feb 2014 08:57:05 +0100 Subject: [PATCH] Do not set a filetype in scratch buffers. --- pythonx/UltiSnips/_vim.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonx/UltiSnips/_vim.py b/pythonx/UltiSnips/_vim.py index bb6032f..579de1d 100755 --- a/pythonx/UltiSnips/_vim.py +++ b/pythonx/UltiSnips/_vim.py @@ -100,9 +100,9 @@ def feedkeys(keys, mode='n'): def new_scratch_buffer(text): """Create a new scratch buffer with the text given""" - command("botright new") - command("set ft=") - command("set buftype=nofile") + vim.command("botright new") + vim.command("set ft=") + vim.command("set buftype=nofile") vim.current.buffer[:] = text.splitlines()